Skip to content

Commit 7787943

Browse files
arndbrafaeljw
authored andcommitted
cpuidle: add ARCH_SUSPEND_POSSIBLE dependencies
Some ARMv4 processors don't support suspend, which leads to a build failure with the tegra and qualcomm cpuidle driver: WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n] Selected by [y]: - ARM_TEGRA_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_TEGRA [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] arch/arm/kernel/sleep.o: in function `__cpu_suspend': (.text+0x68): undefined reference to `cpu_sa110_suspend_size' (.text+0x68): undefined reference to `cpu_fa526_suspend_size' Add an explicit dependency to make randconfig builds avoid this combination. Fixes: faae6c9 ("cpuidle: tegra: Enable compile testing") Fixes: a871be6 ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") Link: https://lore.kernel.org/all/[email protected]/ Cc: All applicable <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Thierry Reding <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 74528ed commit 7787943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpuidle/Kconfig.arm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ config ARM_MVEBU_V7_CPUIDLE
102102
config ARM_TEGRA_CPUIDLE
103103
bool "CPU Idle Driver for NVIDIA Tegra SoCs"
104104
depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU
105+
depends on ARCH_SUSPEND_POSSIBLE
105106
select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
106107
select ARM_CPU_SUSPEND
107108
help
@@ -110,6 +111,7 @@ config ARM_TEGRA_CPUIDLE
110111
config ARM_QCOM_SPM_CPUIDLE
111112
bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)"
112113
depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU
114+
depends on ARCH_SUSPEND_POSSIBLE
113115
select ARM_CPU_SUSPEND
114116
select CPU_IDLE_MULTIPLE_DRIVERS
115117
select DT_IDLE_STATES

0 commit comments

Comments
 (0)