Skip to content

Commit ee702fd

Browse files
Shen Lichuanrafaeljw
authored andcommitted
cpuidle: Correct some typos in comments
Fixed some confusing typos that were currently identified with codespell, the details are as follows: -in the code comments: drivers/cpuidle/cpuidle-arm.c:142: registeration ==> registration drivers/cpuidle/cpuidle-qcom-spm.c:51: accidently ==> accidentally drivers/cpuidle/cpuidle.c:409: dependant ==> dependent drivers/cpuidle/driver.c:264: occuring ==> occurring drivers/cpuidle/driver.c:299: occuring ==> occurring Signed-off-by: Shen Lichuan <shenlichuan@vivo.com> Link: https://patch.msgid.link/20240927081018.8608-1-shenlichuan@vivo.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 38f8309 commit ee702fd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/cpuidle/cpuidle-arm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int __init arm_idle_init_cpu(int cpu)
139139
*
140140
* Initializes arm cpuidle driver for all CPUs, if any CPU fails
141141
* to register cpuidle driver then rollback to cancel all CPUs
142-
* registeration.
142+
* registration.
143143
*/
144144
static int __init arm_idle_init(void)
145145
{

drivers/cpuidle/cpuidle-qcom-spm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int qcom_cpu_spc(struct spm_driver_data *drv)
4848
ret = cpu_suspend(0, qcom_pm_collapse);
4949
/*
5050
* ARM common code executes WFI without calling into our driver and
51-
* if the SPM mode is not reset, then we may accidently power down the
51+
* if the SPM mode is not reset, then we may accidentally power down the
5252
* cpu when we intended only to gate the cpu clock.
5353
* Ensure the state is set to standby before returning.
5454
*/

drivers/cpuidle/cpuidle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void cpuidle_reflect(struct cpuidle_device *dev, int index)
406406
* Min polling interval of 10usec is a guess. It is assuming that
407407
* for most users, the time for a single ping-pong workload like
408408
* perf bench pipe would generally complete within 10usec but
409-
* this is hardware dependant. Actual time can be estimated with
409+
* this is hardware dependent. Actual time can be estimated with
410410
*
411411
* perf bench sched pipe -l 10000
412412
*

drivers/cpuidle/driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static void __cpuidle_unregister_driver(struct cpuidle_driver *drv)
261261
* @drv: a pointer to a valid struct cpuidle_driver
262262
*
263263
* Register the driver under a lock to prevent concurrent attempts to
264-
* [un]register the driver from occuring at the same time.
264+
* [un]register the driver from occurring at the same time.
265265
*
266266
* Returns 0 on success, a negative error code (returned by
267267
* __cpuidle_register_driver()) otherwise.
@@ -296,7 +296,7 @@ EXPORT_SYMBOL_GPL(cpuidle_register_driver);
296296
* @drv: a pointer to a valid struct cpuidle_driver
297297
*
298298
* Unregisters the cpuidle driver under a lock to prevent concurrent attempts
299-
* to [un]register the driver from occuring at the same time. @drv has to
299+
* to [un]register the driver from occurring at the same time. @drv has to
300300
* match the currently registered driver.
301301
*/
302302
void cpuidle_unregister_driver(struct cpuidle_driver *drv)

0 commit comments

Comments
 (0)