aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpuidle/Makefile
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2014-02-28 13:03:44 +0000
committerMark Brown <broonie@kernel.org>2015-01-18 12:40:00 +0000
commit4bb26215c07fb204ae1d66e54406dd6bae793c20 (patch)
tree253d591ee606cc65313e3c8a3cd3e0b0cfa042fb /drivers/cpuidle/Makefile
parent29b3c03e0f74df4cbd461765b5271f643fe5c1e1 (diff)
drivers: cpuidle: CPU idle ARM64 driverv3.10/topic/arm64-cpuidle
This patch implements a generic CPU idle driver for ARM64 machines. It relies on the DT idle states infrastructure to initialize idle states count and respective parameters. Current code assumes the driver is managing idle states on all possible CPUs but can be easily generalized to support heterogenous systems and build cpumasks at runtime using MIDRs or DT cpu nodes compatible properties. The driver relies on the arm64 CPU operations to call the idle initialization hook used to parse and save suspend back-end specific idle states information upon probing. Idle state index 0 is always initialized as a simple wfi state, ie always considered present and functional on all ARM64 platforms. Idle state indices higher than 0 trigger idle state entry by calling the cpu_suspend function, that triggers the suspend operation through the CPU operations suspend back-end hook. cpu_suspend passes the idle state index as a parameter so that the CPU operations suspend back-end can retrieve the required idle state data by using the idle state index to execute a look-up on its internal data structures. Reviewed-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> (cherry picked from commit 3299b63de384159579143d4abdfb94013e0b5470) Signed-off-by: Mark Brown <broonie@kernel.org> Conflicts: drivers/cpuidle/Kconfig drivers/cpuidle/Makefile
Diffstat (limited to 'drivers/cpuidle/Makefile')
-rw-r--r--drivers/cpuidle/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile
index 879182f031d4..825433777ef2 100644
--- a/drivers/cpuidle/Makefile
+++ b/drivers/cpuidle/Makefile
@@ -8,3 +8,7 @@ obj-$(CONFIG_DT_IDLE_STATES) += dt_idle_states.o
obj-$(CONFIG_CPU_IDLE_CALXEDA) += cpuidle-calxeda.o
obj-$(CONFIG_ARCH_KIRKWOOD) += cpuidle-kirkwood.o
+
+###############################################################################
+# ARM64 drivers
+obj-$(CONFIG_ARM64_CPUIDLE) += cpuidle-arm64.o