Skip to content

Commit caf4a36

Browse files
vireshkrafaeljw
authored andcommitted
cpuidle: Fix comments in cpuidle core
Some comments in cpuidle core files contain trivial mistakes. This patch fixes them. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 6587fca commit caf4a36

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/cpuidle/coupled.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static cpumask_t cpuidle_coupled_poked;
147147
* has returned from this function, the barrier is immediately available for
148148
* reuse.
149149
*
150-
* The atomic variable a must be initialized to 0 before any cpu calls
150+
* The atomic variable must be initialized to 0 before any cpu calls
151151
* this function, will be reset to 0 before any cpu returns from this function.
152152
*
153153
* Must only be called from within a coupled idle state handler

‎drivers/cpuidle/cpuidle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ int cpuidle_register(struct cpuidle_driver *drv,
516516

517517
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
518518
/*
519-
* On multiplatform for ARM, the coupled idle states could
519+
* On multiplatform for ARM, the coupled idle states could be
520520
* enabled in the kernel even if the cpuidle driver does not
521521
* use it. Note, coupled_cpus is a struct copy.
522522
*/

‎drivers/cpuidle/driver.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)
5656
}
5757

5858
/**
59-
* __cpuidle_set_driver - set per CPU driver variables the the given driver.
59+
* __cpuidle_set_driver - set per CPU driver variables for the given driver.
6060
* @drv: a valid pointer to a struct cpuidle_driver
6161
*
6262
* For each CPU in the driver's cpumask, unset the registered driver per CPU
@@ -132,7 +132,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv)
132132
* cpuidle_setup_broadcast_timer - enable/disable the broadcast timer
133133
* @arg: a void pointer used to match the SMP cross call API
134134
*
135-
* @arg is used as a value of type 'long' with on of the two values:
135+
* @arg is used as a value of type 'long' with one of the two values:
136136
* - CLOCK_EVT_NOTIFY_BROADCAST_ON
137137
* - CLOCK_EVT_NOTIFY_BROADCAST_OFF
138138
*
@@ -169,7 +169,7 @@ static int __cpuidle_driver_init(struct cpuidle_driver *drv)
169169
/*
170170
* Look for the timer stop flag in the different states, so that we know
171171
* if the broadcast timer has to be set up. The loop is in the reverse
172-
* order, because usually on of the the deeper states has this flag set.
172+
* order, because usually one of the deeper states have this flag set.
173173
*/
174174
for (i = drv->state_count - 1; i >= 0 ; i--) {
175175

0 commit comments

Comments
 (0)