mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
cpuidle: Make drivers initialize polling state
Make the drivers that want to include the polling state into their states table initialize it explicitly and drop the initialization of it (which in fact is conditional, but that is not obvious from the code) from the core. Signed-off-by: Rafael J. Wysocki <[email protected]> Tested-by: Sudeep Holla <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
This commit is contained in:
parent
34c2f65b71
commit
1b39e3f813
5 changed files with 13 additions and 6 deletions
|
|
@ -216,8 +216,6 @@ static int __cpuidle_register_driver(struct cpuidle_driver *drv)
|
|||
on_each_cpu_mask(drv->cpumask, cpuidle_setup_broadcast_timer,
|
||||
(void *)1, 1);
|
||||
|
||||
poll_idle_init(drv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ static int __cpuidle poll_idle(struct cpuidle_device *dev,
|
|||
return index;
|
||||
}
|
||||
|
||||
void poll_idle_init(struct cpuidle_driver *drv)
|
||||
void cpuidle_poll_state_init(struct cpuidle_driver *drv)
|
||||
{
|
||||
struct cpuidle_state *state = &drv->states[0];
|
||||
|
||||
|
|
@ -34,3 +34,4 @@ void poll_idle_init(struct cpuidle_driver *drv)
|
|||
state->disabled = false;
|
||||
state->flags = CPUIDLE_FLAG_POLLING;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpuidle_poll_state_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue