ipq806x: set v4.9 as default
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.4 / 030-ARM-qcom-select-ARM_CPU_SUSPEND-for-power-management.patch
1 From: Arnd Bergmann <arnd@arndb.de>
2 Date: Tue, 24 Nov 2015 23:13:09 +0100
3 Subject: [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management
4
5 The qcom spm driver uses cpu_resume_arm(), which is not included
6 in the kernel in all configurations:
7
8 drivers/built-in.o: In function `qcom_cpu_spc':
9 :(.text+0xbc022): undefined reference to `cpu_suspend'
10 drivers/built-in.o: In function `qcom_cpuidle_init':
11 :(.init.text+0x610c): undefined reference to `cpu_resume_arm'
12
13 This adds a 'select' Kconfig statement to ensure it's always
14 enabled.
15
16 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
18 Signed-off-by: Andy Gross <agross@codeaurora.org>
19 ---
20
21 --- a/drivers/soc/qcom/Kconfig
22 +++ b/drivers/soc/qcom/Kconfig
23 @@ -13,6 +13,7 @@ config QCOM_GSBI
24 config QCOM_PM
25 bool "Qualcomm Power Management"
26 depends on ARCH_QCOM && !ARM64
27 + select ARM_CPU_SUSPEND
28 select QCOM_SCM
29 help
30 QCOM Platform specific power driver to manage cores and L2 low power