Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johan Hovold and committed by
Viresh Kumar
a374f287 2b8e6b58

+4 -4
+4 -4
drivers/cpufreq/Kconfig.arm
··· 76 76 config ARM_BRCMSTB_AVS_CPUFREQ 77 77 tristate "Broadcom STB AVS CPUfreq driver" 78 78 depends on (ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ) || COMPILE_TEST 79 - default ARCH_BRCMSTB 79 + default y if ARCH_BRCMSTB && !ARM_SCMI_CPUFREQ 80 80 help 81 81 Some Broadcom STB SoCs use a co-processor running proprietary firmware 82 82 ("AVS") to handle voltage and frequency scaling. This driver provides ··· 88 88 tristate "Calxeda Highbank-based" 89 89 depends on ARCH_HIGHBANK || COMPILE_TEST 90 90 depends on CPUFREQ_DT && REGULATOR && PL320_MBOX 91 - default m 91 + default m if ARCH_HIGHBANK 92 92 help 93 93 This adds the CPUFreq driver for Calxeda Highbank SoC 94 94 based boards. ··· 133 133 config ARM_MEDIATEK_CPUFREQ_HW 134 134 tristate "MediaTek CPUFreq HW driver" 135 135 depends on ARCH_MEDIATEK || COMPILE_TEST 136 - default m 136 + default m if ARCH_MEDIATEK 137 137 help 138 138 Support for the CPUFreq HW driver. 139 139 Some MediaTek chipsets have a HW engine to offload the steps ··· 256 256 tristate "Tegra194 CPUFreq support" 257 257 depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || (64BIT && COMPILE_TEST) 258 258 depends on TEGRA_BPMP 259 - default ARCH_TEGRA 259 + default ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC 260 260 help 261 261 This adds CPU frequency driver support for Tegra194 SOCs. 262 262