ARM: 8510/1: rework ARM_CPU_SUSPEND dependencies
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 1 Feb 2016 17:01:29 +0000 (18:01 +0100)
committerAlex Shi <alex.shi@linaro.org>
Thu, 20 Oct 2016 08:22:17 +0000 (16:22 +0800)
commitc6cdbc5e461b146a5723ad54d079c198ce6beb45
tree8c47b22acffbd0d217bb20f9fad6ab2ddcba2607
parent6c2d6ce4aaf766c1fd0f57a5ebca8c03c82b80fa
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>
(cherry picked from commit 1b9bdf5c1661873a10e193b8cbb803a87fe5c4a1)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm/Kconfig