030-ARM-qcom-select-ARM_CPU_SUSPEND-for-power-management.patch 993 B

123456789101112131415161718192021222324252627282930
  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. The qcom spm driver uses cpu_resume_arm(), which is not included
  5. in the kernel in all configurations:
  6. drivers/built-in.o: In function `qcom_cpu_spc':
  7. :(.text+0xbc022): undefined reference to `cpu_suspend'
  8. drivers/built-in.o: In function `qcom_cpuidle_init':
  9. :(.init.text+0x610c): undefined reference to `cpu_resume_arm'
  10. This adds a 'select' Kconfig statement to ensure it's always
  11. enabled.
  12. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  13. Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
  14. Signed-off-by: Andy Gross <agross@codeaurora.org>
  15. ---
  16. --- a/drivers/soc/qcom/Kconfig
  17. +++ b/drivers/soc/qcom/Kconfig
  18. @@ -13,6 +13,7 @@ config QCOM_GSBI
  19. config QCOM_PM
  20. bool "Qualcomm Power Management"
  21. depends on ARCH_QCOM && !ARM64
  22. + select ARM_CPU_SUSPEND
  23. select QCOM_SCM
  24. help
  25. QCOM Platform specific power driver to manage cores and L2 low power