OSDN Git Service

arm64: kernel: add PM build infrastructure
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 7 Nov 2013 18:37:14 +0000 (18:37 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Dec 2013 17:17:36 +0000 (17:17 +0000)
commit166936bace056dfc11452d794209f39a5e9b0fb4
tree9dfc0c48ec97c6a46ac33f38fac3570c46c234c0
parentb8824dfe1b3fe1d4ef3d7ee78a071b8290d3b153
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>
arch/arm64/Kconfig
arch/arm64/kernel/Makefile