cpuidle: Make drivers initialize polling state
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 29 Aug 2017 01:14:37 +0000 (03:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Aug 2017 01:06:33 +0000 (03:06 +0200)
commit1b39e3f813b4685c7a30ae964d5529a1b0e3a286
treec99c7dfdb062f77af7076c398358dadfcdffa9ca
parent34c2f65b718d44ea7d7b3cc10777f410677455ce
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>
drivers/acpi/processor_idle.c
drivers/cpuidle/driver.c
drivers/cpuidle/poll_state.c
drivers/idle/intel_idle.c
include/linux/cpuidle.h