Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b171a856 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e437f3e3
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -170,14 +170,12 @@ 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;

		if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) {
			drv->bctimer = 1;
			break;
		}
	}
}

/**
 * __cpuidle_register_driver: register the driver