aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2016-02-01 12:01:29 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2016-02-11 10:33:38 -0500
commit1b9bdf5c1661873a10e193b8cbb803a87fe5c4a1 (patch)
tree3bbed2ee628f6b8d55e96e9734db1a58eef0a6cb
parentccc66e738252cede5c13e8d529b93b5a35b307c2 (diff)
ARM: 8510/1: rework ARM_CPU_SUSPEND dependencies
The code enabled by the ARM_CPU_SUSPEND config option is used by kernel subsystems for purposes that go beyond system suspend so its config entry should be augmented to take more default options into account and avoid forcing its selection to prevent dependencies override. To achieve this goal, this patch reworks the ARM_CPU_SUSPEND config entry and updates its default config value (by adding the BL_SWITCHER option to it) and its dependencies (ARCH_SUSPEND_POSSIBLE), so that the symbol is still selected by default by the subsystems requiring it and at the same time enforcing the dependencies correctly. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 4f799e567fc8..8456f69bc77d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1337,7 +1337,6 @@ config BIG_LITTLE
1337config BL_SWITCHER 1337config BL_SWITCHER
1338 bool "big.LITTLE switcher support" 1338 bool "big.LITTLE switcher support"
1339 depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC 1339 depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
1340 select ARM_CPU_SUSPEND
1341 select CPU_PM 1340 select CPU_PM
1342 help 1341 help
1343 The big.LITTLE "switcher" provides the core functionality to 1342 The big.LITTLE "switcher" provides the core functionality to
@@ -2111,7 +2110,8 @@ config ARCH_SUSPEND_POSSIBLE
2111 def_bool y 2110 def_bool y
2112 2111
2113config ARM_CPU_SUSPEND 2112config ARM_CPU_SUSPEND
2114 def_bool PM_SLEEP 2113 def_bool PM_SLEEP || BL_SWITCHER
2114 depends on ARCH_SUSPEND_POSSIBLE
2115 2115
2116config ARCH_HIBERNATION_POSSIBLE 2116config ARCH_HIBERNATION_POSSIBLE
2117 bool 2117 bool