diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-10-03 11:56:41 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-29 20:21:21 -0400 |
commit | caf4a36e818ba8df4e002b7dfa4eff5b8384dda0 (patch) | |
tree | 305d94e7534a3872974b708ba0ea7f85ded256b3 | |
parent | 6587fca23001c33813d56309faf41188b5fbdb70 (diff) |
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>
-rw-r--r-- | drivers/cpuidle/coupled.c | 2 | ||||
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 2 | ||||
-rw-r--r-- | drivers/cpuidle/driver.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cpuidle/coupled.c b/drivers/cpuidle/coupled.c index f8a86364c6b6..e952936418d0 100644 --- a/drivers/cpuidle/coupled.c +++ b/drivers/cpuidle/coupled.c | |||
@@ -147,7 +147,7 @@ static cpumask_t cpuidle_coupled_poked; | |||
147 | * has returned from this function, the barrier is immediately available for | 147 | * has returned from this function, the barrier is immediately available for |
148 | * reuse. | 148 | * reuse. |
149 | * | 149 | * |
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 |
151 | * this function, will be reset to 0 before any cpu returns from this function. | 151 | * this function, will be reset to 0 before any cpu returns from this function. |
152 | * | 152 | * |
153 | * Must only be called from within a coupled idle state handler | 153 | * Must only be called from within a coupled idle state handler |
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index d75040ddd2b3..8827c02af87c 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -516,7 +516,7 @@ int cpuidle_register(struct cpuidle_driver *drv, | |||
516 | 516 | ||
517 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED | 517 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED |
518 | /* | 518 | /* |
519 | * On multiplatform for ARM, the coupled idle states could | 519 | * On multiplatform for ARM, the coupled idle states could be |
520 | * enabled in the kernel even if the cpuidle driver does not | 520 | * enabled in the kernel even if the cpuidle driver does not |
521 | * use it. Note, coupled_cpus is a struct copy. | 521 | * use it. Note, coupled_cpus is a struct copy. |
522 | */ | 522 | */ |
diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 6e11701f0fca..ced1df6844eb 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c | |||
@@ -56,7 +56,7 @@ static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | /** | 58 | /** |
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. |
60 | * @drv: a valid pointer to a struct cpuidle_driver | 60 | * @drv: a valid pointer to a struct cpuidle_driver |
61 | * | 61 | * |
62 | * For each CPU in the driver's cpumask, unset the registered driver per CPU | 62 | * 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) | |||
132 | * cpuidle_setup_broadcast_timer - enable/disable the broadcast timer | 132 | * cpuidle_setup_broadcast_timer - enable/disable the broadcast timer |
133 | * @arg: a void pointer used to match the SMP cross call API | 133 | * @arg: a void pointer used to match the SMP cross call API |
134 | * | 134 | * |
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: |
136 | * - CLOCK_EVT_NOTIFY_BROADCAST_ON | 136 | * - CLOCK_EVT_NOTIFY_BROADCAST_ON |
137 | * - CLOCK_EVT_NOTIFY_BROADCAST_OFF | 137 | * - CLOCK_EVT_NOTIFY_BROADCAST_OFF |
138 | * | 138 | * |
@@ -169,7 +169,7 @@ static int __cpuidle_driver_init(struct cpuidle_driver *drv) | |||
169 | /* | 169 | /* |
170 | * Look for the timer stop flag in the different states, so that we know | 170 | * Look for the timer stop flag in the different states, so that we know |
171 | * if the broadcast timer has to be set up. The loop is in the reverse | 171 | * 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. |
173 | */ | 173 | */ |
174 | for (i = drv->state_count - 1; i >= 0 ; i--) { | 174 | for (i = drv->state_count - 1; i >= 0 ; i--) { |
175 | 175 | ||