summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2013-11-07 13:37:14 -0500
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2013-12-16 12:17:36 -0500
commit166936bace056dfc11452d794209f39a5e9b0fb4 (patch)
tree9dfc0c48ec97c6a46ac33f38fac3570c46c234c0 /arch/arm64/Kconfig
parentb8824dfe1b3fe1d4ef3d7ee78a071b8290d3b153 (diff)
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>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index baab4eb8bfe4..a1c8f39cb009 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -12,6 +12,7 @@ config ARM64
12 select BUILDTIME_EXTABLE_SORT 12 select BUILDTIME_EXTABLE_SORT
13 select CLONE_BACKWARDS 13 select CLONE_BACKWARDS
14 select COMMON_CLK 14 select COMMON_CLK
15 select CPU_PM if (SUSPEND || CPU_IDLE)
15 select GENERIC_CLOCKEVENTS 16 select GENERIC_CLOCKEVENTS
16 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 17 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
17 select GENERIC_IOMAP 18 select GENERIC_IOMAP
@@ -277,6 +278,18 @@ config SYSVIPC_COMPAT
277 278
278endmenu 279endmenu
279 280
281menu "Power management options"
282
283source "kernel/power/Kconfig"
284
285config ARCH_SUSPEND_POSSIBLE
286 def_bool y
287
288config ARM64_CPU_SUSPEND
289 def_bool PM_SLEEP
290
291endmenu
292
280source "net/Kconfig" 293source "net/Kconfig"
281 294
282source "drivers/Kconfig" 295source "drivers/Kconfig"