cpuidle: Move polling state initialization code to separate file
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Aug 2017 21:21:07 +0000 (23:21 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Aug 2017 01:06:27 +0000 (03:06 +0200)
commit34c2f65b718d44ea7d7b3cc10777f410677455ce
tree70a9a541937ff04eb67c1bda48f81da664231df6
parentdc2251bf98c66db3f4e055b751968f0871037ae4
cpuidle: Move polling state initialization code to separate file

Move the polling state initialization code to a separate file built
conditionally on CONFIG_ARCH_HAS_CPU_RELAX to get rid of the #ifdef
in driver.c.

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/cpuidle/Makefile
drivers/cpuidle/driver.c
drivers/cpuidle/poll_state.c [new file with mode: 0644]
include/linux/cpuidle.h