Skip to content

Commit e65c287

Browse files
He Yinggregkh
authored andcommitted
cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration
[ Upstream commit 498ba2a ] 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: a871be6 ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8316ec2 commit e65c287

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/cpuidle/Kconfig.arm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ config ARM_TEGRA_CPUIDLE
107107

108108
config ARM_QCOM_SPM_CPUIDLE
109109
bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)"
110-
depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64
110+
depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU
111111
select ARM_CPU_SUSPEND
112112
select CPU_IDLE_MULTIPLE_DRIVERS
113113
select DT_IDLE_STATES

0 commit comments

Comments
 (0)