summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/Makefile
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-23 23:21:07 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-30 03:06:27 +0200
commit34c2f65b718d44ea7d7b3cc10777f410677455ce (patch)
tree70a9a541937ff04eb67c1bda48f81da664231df6 /drivers/cpuidle/Makefile
parentdc2251bf98c66db3f4e055b751968f0871037ae4 (diff)
downloadlwn-34c2f65b718d44ea7d7b3cc10777f410677455ce.tar.gz
lwn-34c2f65b718d44ea7d7b3cc10777f410677455ce.zip
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>
Diffstat (limited to 'drivers/cpuidle/Makefile')
-rw-r--r--drivers/cpuidle/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile
index 3ba81b1dffad..0b67a05a7aae 100644
--- a/drivers/cpuidle/Makefile
+++ b/drivers/cpuidle/Makefile
@@ -5,6 +5,7 @@
obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o
obj-$(CONFIG_DT_IDLE_STATES) += dt_idle_states.o
+obj-$(CONFIG_ARCH_HAS_CPU_RELAX) += poll_state.o
##################################################################################
# ARM SoC drivers