]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: fix compile-test defaults
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 17 Apr 2025 07:28:38 +0000 (09:28 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 17 Apr 2025 08:06:29 +0000 (13:36 +0530)
commita374f28700abd20e8a7d026f89aa26f759445918
treed4cb001aa7dc8612cfa798e21cee6e4922a91c43
parent2b8e6b58889c672e1ae3601d9b2b070be4dc2fbc
cpufreq: fix compile-test defaults

Commit 3f66425a4fc8 ("cpufreq: Enable COMPILE_TEST on Arm drivers")
enabled compile testing of most Arm CPUFreq drivers but left the
existing default values unchanged so that many drivers are enabled by
default whenever COMPILE_TEST is selected.

This specifically results in the S3C64XX CPUFreq driver being enabled
and initialised during boot of non-S3C64XX platforms with the following
error logged:

cpufreq: Unable to obtain ARMCLK: -2

Commit d4f610a9bafd ("cpufreq: Do not enable by default during compile
testing") recently fixed most of the default values, but two entries
were missed and two could use a more specific default condition.

Fix the default values for drivers that can be compile tested and that
should be enabled by default when not compile testing.

Fixes: 3f66425a4fc8 ("cpufreq: Enable COMPILE_TEST on Arm drivers")
Cc: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/Kconfig.arm