mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00
cpufreq: Move CPPC configs to common Kconfig and add RISC-V
CPPC related config options are currently defined only in ARM specific file. However, they are required for RISC-V as well. Instead of creating a new Kconfig.riscv file and duplicating them, move them to the common Kconfig file and enable RISC-V too. Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20240208034414.22579-3-sunilvl@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
30f3ffbee8
commit
7ee1378736
@ -302,4 +302,33 @@ config QORIQ_CPUFREQ
|
|||||||
which are capable of changing the CPU's frequency dynamically.
|
which are capable of changing the CPU's frequency dynamically.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
config ACPI_CPPC_CPUFREQ
|
||||||
|
tristate "CPUFreq driver based on the ACPI CPPC spec"
|
||||||
|
depends on ACPI_PROCESSOR
|
||||||
|
depends on ARM || ARM64 || RISCV
|
||||||
|
select ACPI_CPPC_LIB
|
||||||
|
help
|
||||||
|
This adds a CPUFreq driver which uses CPPC methods
|
||||||
|
as described in the ACPIv5.1 spec. CPPC stands for
|
||||||
|
Collaborative Processor Performance Controls. It
|
||||||
|
is based on an abstract continuous scale of CPU
|
||||||
|
performance values which allows the remote power
|
||||||
|
processor to flexibly optimize for power and
|
||||||
|
performance. CPPC relies on power management firmware
|
||||||
|
support for its operation.
|
||||||
|
|
||||||
|
If in doubt, say N.
|
||||||
|
|
||||||
|
config ACPI_CPPC_CPUFREQ_FIE
|
||||||
|
bool "Frequency Invariance support for CPPC cpufreq driver"
|
||||||
|
depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
|
||||||
|
depends on ARM || ARM64 || RISCV
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This extends frequency invariance support in the CPPC cpufreq driver,
|
||||||
|
by using CPPC delivered and reference performance counters.
|
||||||
|
|
||||||
|
If in doubt, say N.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -3,32 +3,6 @@
|
|||||||
# ARM CPU Frequency scaling drivers
|
# ARM CPU Frequency scaling drivers
|
||||||
#
|
#
|
||||||
|
|
||||||
config ACPI_CPPC_CPUFREQ
|
|
||||||
tristate "CPUFreq driver based on the ACPI CPPC spec"
|
|
||||||
depends on ACPI_PROCESSOR
|
|
||||||
select ACPI_CPPC_LIB
|
|
||||||
help
|
|
||||||
This adds a CPUFreq driver which uses CPPC methods
|
|
||||||
as described in the ACPIv5.1 spec. CPPC stands for
|
|
||||||
Collaborative Processor Performance Controls. It
|
|
||||||
is based on an abstract continuous scale of CPU
|
|
||||||
performance values which allows the remote power
|
|
||||||
processor to flexibly optimize for power and
|
|
||||||
performance. CPPC relies on power management firmware
|
|
||||||
support for its operation.
|
|
||||||
|
|
||||||
If in doubt, say N.
|
|
||||||
|
|
||||||
config ACPI_CPPC_CPUFREQ_FIE
|
|
||||||
bool "Frequency Invariance support for CPPC cpufreq driver"
|
|
||||||
depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This extends frequency invariance support in the CPPC cpufreq driver,
|
|
||||||
by using CPPC delivered and reference performance counters.
|
|
||||||
|
|
||||||
If in doubt, say N.
|
|
||||||
|
|
||||||
config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
|
config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
|
||||||
tristate "Allwinner nvmem based SUN50I CPUFreq driver"
|
tristate "Allwinner nvmem based SUN50I CPUFreq driver"
|
||||||
depends on ARCH_SUNXI
|
depends on ARCH_SUNXI
|
||||||
|
Loading…
Reference in New Issue
Block a user