diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-29 04:14:37 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-30 04:06:33 +0300 |
commit | 1b39e3f813b4685c7a30ae964d5529a1b0e3a286 (patch) | |
tree | c99c7dfdb062f77af7076c398358dadfcdffa9ca /drivers/idle | |
parent | 34c2f65b718d44ea7d7b3cc10777f410677455ce (diff) | |
download | linux-1b39e3f813b4685c7a30ae964d5529a1b0e3a286.tar.xz |
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 <rafael.j.wysocki@intel.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/idle')
-rw-r--r-- | drivers/idle/intel_idle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index c2ae819a871c..7bf8739e33bc 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -1331,6 +1331,7 @@ static void __init intel_idle_cpuidle_driver_init(void) intel_idle_state_table_update(); + cpuidle_poll_state_init(drv); drv->state_count = 1; for (cstate = 0; cstate < CPUIDLE_STATE_MAX; ++cstate) { |