arm64: kernel: add PM build infrastructure
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 7 Nov 2013 18:37:14 +0000 (18:37 +0000)
committerAlex Shi <alex.shi@linaro.org>
Mon, 10 Mar 2014 05:38:37 +0000 (13:38 +0800)
commit8c2e5de7bd8d0d9756bfe63f93dc98a72c60e4a9
tree493d2ca0a1a4f7c0d1941f3771241f330c95fd7c
parent9bbf6e3e9c2a9c6eef7892c03cd9d56562be9148
arm64: kernel: add PM build infrastructure

This patch adds the required makefile and kconfig entries to enable PM
for arm64 systems.

The kernel relies on the cpu_{suspend}/{resume} infrastructure to
properly save the context for a CPU and put it to sleep, hence this
patch adds the config option required to enable cpu_{suspend}/{resume}
API.

In order to rely on the CPU PM implementation for saving and restoring
of CPU subsystems like GIC and PMU, the arch Kconfig must be also
augmented to select the CONFIG_CPU_PM option when SUSPEND or CPU_IDLE
kernel implementations are selected.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Conflicts:
arch/arm64/Kconfig
arch/arm64/kernel/Makefile
arch/arm64/Kconfig
arch/arm64/kernel/Makefile