mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
e437f3e373
commit
b171a85648
1 changed files with 4 additions and 6 deletions
|
|
@ -170,12 +170,10 @@ static void __cpuidle_driver_init(struct cpuidle_driver *drv)
|
|||
* order, because usually one of the deeper states have this flag set.
|
||||
*/
|
||||
for (i = drv->state_count - 1; i >= 0 ; i--) {
|
||||
|
||||
if (!(drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP))
|
||||
continue;
|
||||
|
||||
drv->bctimer = 1;
|
||||
break;
|
||||
if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) {
|
||||
drv->bctimer = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue