]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: qcom: select ARM_CPU_SUSPEND for power management
authorArnd Bergmann <arnd@arndb.de>
Tue, 24 Nov 2015 22:13:09 +0000 (23:13 +0100)
committerAndy Gross <agross@codeaurora.org>
Tue, 8 Dec 2015 19:01:02 +0000 (13:01 -0600)
The qcom spm driver uses cpu_resume_arm(), which is not included
in the kernel in all configurations:

drivers/built-in.o: In function `qcom_cpu_spc':
:(.text+0xbc022): undefined reference to `cpu_suspend'
drivers/built-in.o: In function `qcom_cpuidle_init':
:(.init.text+0x610c): undefined reference to `cpu_resume_arm'

This adds a 'select' Kconfig statement to ensure it's always
enabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/Kconfig

index 57b7145358e7e57a4d2580bfbc4d673756a93286..4c98ffe968c77a19d335029c3038c932b9b52321 100644 (file)
@@ -13,6 +13,7 @@ config QCOM_GSBI
 config QCOM_PM
        bool "Qualcomm Power Management"
        depends on ARCH_QCOM && !ARM64
+       select ARM_CPU_SUSPEND
        select QCOM_SCM
        help
          QCOM Platform specific power driver to manage cores and L2 low power