Skip to content

Commit d9b4c80

Browse files
committed
cpufreq: fix compile-test defaults
JIRA: https://issues.redhat.com/browse/RHEL-83800 commit a374f28 Author: Johan Hovold <johan+linaro@kernel.org> Date: Thu, 17 Apr 2025 13:36:29 +0000 Commit 3f66425 ("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 d4f610a ("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: 3f66425 ("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> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent cd82e6b commit d9b4c80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/cpufreq/Kconfig.arm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ config ARM_VEXPRESS_SPC_CPUFREQ
6767
config ARM_BRCMSTB_AVS_CPUFREQ
6868
tristate "Broadcom STB AVS CPUfreq driver"
6969
depends on (ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ) || COMPILE_TEST
70-
default ARCH_BRCMSTB
70+
default y if ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ
7171
help
7272
Some Broadcom STB SoCs use a co-processor running proprietary firmware
7373
("AVS") to handle voltage and frequency scaling. This driver provides
@@ -79,7 +79,7 @@ config ARM_HIGHBANK_CPUFREQ
7979
tristate "Calxeda Highbank-based"
8080
depends on ARCH_HIGHBANK || COMPILE_TEST
8181
depends on CPUFREQ_DT && REGULATOR && PL320_MBOX
82-
default m
82+
default m if ARCH_HIGHBANK
8383
help
8484
This adds the CPUFreq driver for Calxeda Highbank SoC
8585
based boards.
@@ -124,7 +124,7 @@ config ARM_MEDIATEK_CPUFREQ
124124
config ARM_MEDIATEK_CPUFREQ_HW
125125
tristate "MediaTek CPUFreq HW driver"
126126
depends on ARCH_MEDIATEK || COMPILE_TEST
127-
default m
127+
default m if ARCH_MEDIATEK
128128
help
129129
Support for the CPUFreq HW driver.
130130
Some MediaTek chipsets have a HW engine to offload the steps
@@ -247,7 +247,7 @@ config ARM_TEGRA194_CPUFREQ
247247
tristate "Tegra194 CPUFreq support"
248248
depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || (64BIT && COMPILE_TEST)
249249
depends on TEGRA_BPMP
250-
default ARCH_TEGRA
250+
default ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
251251
help
252252
This adds CPU frequency driver support for Tegra194 SOCs.
253253

0 commit comments

Comments
 (0)