diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-10-03 11:56:45 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-29 20:21:22 -0400 |
commit | b171a85648e7055c6680c259a9a87806a56a24c3 (patch) | |
tree | 717b8e76d5267e94e4c4b80c8c9e2537277424d3 /drivers/cpuidle/driver.c | |
parent | e437f3e37369606bf1a340e0504554d6530abc51 (diff) |
cpuidle: rearrange code in __cpuidle_driver_init()
This is trivial patch that just reorders a few statements in
__cpuidle_driver_init() routine so that we don't need both 'continue'
and 'break' in the for loop. Functionally it shouldn't change anything.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/driver.c')
-rw-r--r-- | drivers/cpuidle/driver.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index d97d072a461c..a930005d5a3a 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c | |||
@@ -170,12 +170,10 @@ static void __cpuidle_driver_init(struct cpuidle_driver *drv) | |||
170 | * order, because usually one of the deeper states have this flag set. | 170 | * order, because usually one of the deeper states have this flag set. |
171 | */ | 171 | */ |
172 | for (i = drv->state_count - 1; i >= 0 ; i--) { | 172 | for (i = drv->state_count - 1; i >= 0 ; i--) { |
173 | 173 | if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) { | |
174 | if (!(drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP)) | 174 | drv->bctimer = 1; |
175 | continue; | 175 | break; |
176 | 176 | } | |
177 | drv->bctimer = 1; | ||
178 | break; | ||
179 | } | 177 | } |
180 | } | 178 | } |
181 | 179 | ||