ARM: Only allow PM_SLEEP with CPUs which support suspend
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Apr 2011 09:15:28 +0000 (10:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Apr 2011 09:15:28 +0000 (10:15 +0100)
Offering CONFIG_PM_SLEEP for CPUs which do not support suspend leads to
build errors, so only set CONFIG_ARCH_SUSPEND_POSSIBLE if we have a CPU
selected which supports suspend.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig

index 5b9f78b570e85c2f959c3d7fb1cda1bd70b2ac55..9954c9bef67974a688f6a9686ac30ae0b02f7ea8 100644 (file)
@@ -2012,6 +2012,8 @@ source "kernel/power/Kconfig"
 
 config ARCH_SUSPEND_POSSIBLE
        depends on !ARCH_S5P64X0 && !ARCH_S5P6442
+       depends on CPU_ARM920T || CPU_ARM926T || CPU_SA1100 || \
+               CPU_V6 || CPU_V6K || CPU_V7 || CPU_XSC3 || CPU_XSCALE
        def_bool y
 
 endmenu