]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration
authorHe Ying <heying24@huawei.com>
Tue, 6 Apr 2021 12:33:28 +0000 (08:33 -0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 17:54:14 +0000 (19:54 +0200)
commit54d6dba1b5e6d8687a5aee39c57965bd733a564c
treeaf8109e27643aebc1dddf933784799954701500b
parentd61070670c65a142c79601ebe9387af1de0efcf3
cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration

When CONFIG_ARM_QCOM_SPM_CPUIDLE is y and CONFIG_MMU is not set,
compiling errors are encountered as follows:

drivers/cpuidle/cpuidle-qcom-spm.o: In function `spm_dev_probe':
cpuidle-qcom-spm.c:(.text+0x140): undefined reference to `cpu_resume_arm'
cpuidle-qcom-spm.c:(.text+0x148): undefined reference to `cpu_resume_arm'

Note that cpu_resume_arm is defined when MMU is set. So, add dependency
on MMU in ARM_QCOM_SPM_CPUIDLE configuration.

Fixes: e5c51f1079c8 ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: He Ying <heying24@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210406123328.92904-1-heying24@huawei.com
drivers/cpuidle/Kconfig.arm