mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cpuidle: Remove CPUIDLE_FLAG_IGNORE and dev->prepare()
The cpuidle_device->prepare() mechanism causes updates to the cpuidle_state[].flags, setting and clearing CPUIDLE_FLAG_IGNORE to tell the governor not to chose a state on a per-cpu basis at run-time. State demotion is now handled by the driver and it returns the actual state entered. Hence, this mechanism is not required. Also this removes per-cpu flags from cpuidle_state enabling it to be made global. Reference: https://lkml.org/lkml/2011/3/25/52 Signed-off-by: Deepthi Dharwar <[email protected]> Signed-off-by: Trinabh Gupta <[email protected]> Tested-by: Jean Pihet <[email protected]> Acked-by: Arjan van de Ven <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
e978aa7d7d
commit
b25edc42bf
3 changed files with 0 additions and 15 deletions
|
|
@ -83,16 +83,6 @@ int cpuidle_idle_call(void)
|
|||
hrtimer_peek_ahead_timers();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Call the device's prepare function before calling the
|
||||
* governor's select function. ->prepare gives the device's
|
||||
* cpuidle driver a chance to update any dynamic information
|
||||
* of its cpuidle states for the current idle period, e.g.
|
||||
* state availability, latencies, residencies, etc.
|
||||
*/
|
||||
if (dev->prepare)
|
||||
dev->prepare(dev);
|
||||
|
||||
/* ask the governor for the next state */
|
||||
next_state = cpuidle_curr_governor->select(dev);
|
||||
if (need_resched()) {
|
||||
|
|
|
|||
|
|
@ -288,8 +288,6 @@ static int menu_select(struct cpuidle_device *dev)
|
|||
for (i = CPUIDLE_DRIVER_STATE_START; i < dev->state_count; i++) {
|
||||
struct cpuidle_state *s = &dev->states[i];
|
||||
|
||||
if (s->flags & CPUIDLE_FLAG_IGNORE)
|
||||
continue;
|
||||
if (s->target_residency > data->predicted_us)
|
||||
continue;
|
||||
if (s->exit_latency > latency_req)
|
||||
|
|
|
|||
Loading…
Reference in a new issue