Skip to content

Commit 6eacb15

Browse files
committed
intel_idle: Clean up kerneldoc comments for multiple functions
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 <[email protected]>
1 parent 6eb0443 commit 6eacb15

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

drivers/idle/intel_idle.c

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,11 +1288,11 @@ static inline void intel_idle_init_cstates_acpi(struct cpuidle_driver *drv) { }
12881288
static inline bool intel_idle_off_by_default(u32 mwait_hint) { return false; }
12891289
#endif /* !CONFIG_ACPI_PROCESSOR_CSTATE */
12901290

1291-
/*
1292-
* ivt_idle_state_table_update(void)
1291+
/**
1292+
* ivt_idle_state_table_update - Tune the idle states table for Ivy Town.
12931293
*
1294-
* Tune IVT multi-socket targets
1295-
* Assumption: num_sockets == (max_package_num + 1)
1294+
* Tune IVT multi-socket targets.
1295+
* Assumption: num_sockets == (max_package_num + 1).
12961296
*/
12971297
static void __init ivt_idle_state_table_update(void)
12981298
{
@@ -1338,11 +1338,11 @@ static unsigned long long __init irtl_2_usec(unsigned long long irtl)
13381338
return div_u64((irtl & 0x3FF) * ns, NSEC_PER_USEC);
13391339
}
13401340

1341-
/*
1342-
* bxt_idle_state_table_update(void)
1341+
/**
1342+
* bxt_idle_state_table_update - Fix up the Broxton idle states table.
13431343
*
1344-
* On BXT, we trust the IRTL to show the definitive maximum latency
1345-
* We use the same value for target_residency.
1344+
* On BXT, trust the IRTL (Interrupt Response Time Limit) MSR to show the
1345+
* definitive maximum latency and use the same value for target_residency.
13461346
*/
13471347
static void __init bxt_idle_state_table_update(void)
13481348
{
@@ -1385,11 +1385,11 @@ static void __init bxt_idle_state_table_update(void)
13851385
}
13861386

13871387
}
1388-
/*
1389-
* sklh_idle_state_table_update(void)
1388+
1389+
/**
1390+
* sklh_idle_state_table_update - Fix up the Sky Lake idle states table.
13901391
*
1391-
* On SKL-H (model 0x5e) disable C8 and C9 if:
1392-
* C10 is enabled and SGX disabled
1392+
* On SKL-H (model 0x5e) skip C8 and C9 if C10 is enabled and SGX disabled.
13931393
*/
13941394
static void __init sklh_idle_state_table_update(void)
13951395
{
@@ -1500,9 +1500,9 @@ static void __init intel_idle_init_cstates_icpu(struct cpuidle_driver *drv)
15001500
}
15011501
}
15021502

1503-
/*
1504-
* intel_idle_cpuidle_driver_init()
1505-
* allocate, initialize cpuidle_states
1503+
/**
1504+
* intel_idle_cpuidle_driver_init - Create the list of available idle states.
1505+
* @drv: cpuidle driver structure to initialize.
15061506
*/
15071507
static void __init intel_idle_cpuidle_driver_init(struct cpuidle_driver *drv)
15081508
{
@@ -1537,10 +1537,12 @@ static void c1e_promotion_disable(void)
15371537
wrmsrl(MSR_IA32_POWER_CTL, msr_bits);
15381538
}
15391539

1540-
/*
1541-
* intel_idle_cpu_init()
1542-
* allocate, initialize, register cpuidle_devices
1543-
* @cpu: cpu/core to initialize
1540+
/**
1541+
* intel_idle_cpu_init - Register the target CPU with the cpuidle core.
1542+
* @cpu: CPU to initialize.
1543+
*
1544+
* Register a cpuidle device object for @cpu and update its MSRs in accordance
1545+
* with the processor model flags.
15441546
*/
15451547
static int intel_idle_cpu_init(unsigned int cpu)
15461548
{

0 commit comments

Comments
 (0)