Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1017788ybv; Thu, 13 Feb 2020 14:06:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwiEJPaUMauqCUDuR/mnkKnaCaGRqUq5ts+221F+eITfgcoBEt4RTJKdtrdTI3zs1EYav4D X-Received: by 2002:a9d:774e:: with SMTP id t14mr14825816otl.358.1581631592371; Thu, 13 Feb 2020 14:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581631592; cv=none; d=google.com; s=arc-20160816; b=0eIC+tOOmBc9o+VFncgsmLn8mjUMDbBuw+bg9ZC6R+f63SxkZJIwYD2+vjVX1Jbob0 IUvYIfkRkIuu7jAXgqu0ibryO9aFDOmmUMnFJUw20o2kOzlR9tC5QoWKHz5UOIlaxRQh vUfcv6qbh//6uuQru7AhB52VztnBHPHftQoeNXnHHlBHb0xyya1dowJqet+QH66IZyE5 4oY3HscszteYBHg08QO00m9w3fNtPD+j70741wJCBSdvcEH7qsd6RRwjctFpyIRr6rNs Hl9AAq1FyLMYItdeyRLouoIf1U2bxoHCTC76Lh9nIp7C2BpgCNCVPfRodL79XF0cI/Fv SQrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=t3ZW6A3r4Q6Sto4FW6zuVR9bW8hC1jbbiy6eBVynfPw=; b=xAnUdqRmlbnuU+X9iPqSiv++UucXlO9EcC59m0o6Vhqt5SOqp+cRGkI1HF6Vw3Mvb3 /NxI9UYRwbM8kpxhXfNyIrHElPNOr65UxyOVxyqUl+6eWEd1vu2G9cs3M1QglnPeoz2o NDcHrzjk9D/Qict3Ag5PonNWIRJKjuIVWa/9gXY50EQXOFBKs0i8u34BnxbejrSL228G bcq7U+N8Rx2jcJODUgpFlF01q7uo1ZK9taIDl5eZ79ZAl7BXU2d8u8LJm+8sMUcUor8i TkXL2p/N4h4JNxX0dq6sk57PzrY7i+ifqqeqKI0Xj6xrAFyYZdrZ2r8qhq9AwzegdQeE us0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94si1710041otw.297.2020.02.13.14.06.20; Thu, 13 Feb 2020 14:06:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728688AbgBMWFe (ORCPT + 99 others); Thu, 13 Feb 2020 17:05:34 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:51260 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbgBMWFE (ORCPT ); Thu, 13 Feb 2020 17:05:04 -0500 Received: from 79.184.254.199.ipv4.supernova.orange.pl (79.184.254.199) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id b120af7d0df2dbec; Thu, 13 Feb 2020 23:05:02 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: Len Brown , LKML , Zhang Rui , "Rafael J. Wysocki" , Chen Yu Subject: [PATCH 7/9] intel_idle: Clean up kerneldoc comments of multiple functions Date: Thu, 13 Feb 2020 23:03:07 +0100 Message-ID: <16490706.IjqtDSzaaB@kreacher> In-Reply-To: <2960689.qre192dJKD@kreacher> References: <2960689.qre192dJKD@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Rafael J. Wysocki" Turn the description comments of some functions in the intel_idle driver into proper kerneldoc ones and clean them up. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/idle/intel_idle.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 3a93cd1036fb..9575615c8f4a 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -1288,11 +1288,11 @@ static inline void intel_idle_init_cstates_acpi(struct cpuidle_driver *drv) { } static inline bool intel_idle_off_by_default(u32 mwait_hint) { return false; } #endif /* !CONFIG_ACPI_PROCESSOR_CSTATE */ -/* - * ivt_idle_state_table_update(void) +/** + * ivt_idle_state_table_update - Tune the idle states table for Ivy Town. * - * Tune IVT multi-socket targets - * Assumption: num_sockets == (max_package_num + 1) + * Tune IVT multi-socket targets. + * Assumption: num_sockets == (max_package_num + 1). */ static void __init ivt_idle_state_table_update(void) { @@ -1338,11 +1338,11 @@ static unsigned long long __init irtl_2_usec(unsigned long long irtl) return div_u64((irtl & 0x3FF) * ns, NSEC_PER_USEC); } -/* - * bxt_idle_state_table_update(void) +/** + * bxt_idle_state_table_update - Fix up the Broxton idle states table. * - * On BXT, we trust the IRTL to show the definitive maximum latency - * We use the same value for target_residency. + * On BXT, trust the IRTL (Interrupt Response Time Limit) MSR to show the + * definitive maximum latency and use the same value for target_residency. */ static void __init bxt_idle_state_table_update(void) { @@ -1385,11 +1385,11 @@ static void __init bxt_idle_state_table_update(void) } } -/* - * sklh_idle_state_table_update(void) + +/** + * sklh_idle_state_table_update - Fix up the Sky Lake idle states table. * - * On SKL-H (model 0x5e) disable C8 and C9 if: - * C10 is enabled and SGX disabled + * On SKL-H (model 0x5e) skip C8 and C9 if C10 is enabled and SGX disabled. */ static void __init sklh_idle_state_table_update(void) { @@ -1500,9 +1500,9 @@ static void __init intel_idle_init_cstates_icpu(struct cpuidle_driver *drv) } } -/* - * intel_idle_cpuidle_driver_init() - * allocate, initialize cpuidle_states +/** + * intel_idle_cpuidle_driver_init - Create the list of available idle states. + * @drv: cpuidle driver structure to initialize. */ static void __init intel_idle_cpuidle_driver_init(struct cpuidle_driver *drv) { @@ -1537,10 +1537,12 @@ static void c1e_promotion_disable(void) wrmsrl(MSR_IA32_POWER_CTL, msr_bits); } -/* - * intel_idle_cpu_init() - * allocate, initialize, register cpuidle_devices - * @cpu: cpu/core to initialize +/** + * intel_idle_cpu_init - Register the target CPU with the cpuidle core. + * @cpu: CPU to initialize. + * + * Register a cpuidle device object for @cpu and update its MSRs in accordance + * with the processor model flags. */ static int intel_idle_cpu_init(unsigned int cpu) { -- 2.16.4