Skip to content

Commit 7dc6fd1

Browse files
committed
cpufreq: Move CPPC configs to common Kconfig and add RISC-V
JIRA: https://issues.redhat.com/browse/RHEL-112816 commit 7ee1378 Author: Sunil V L <sunilvl@ventanamicro.com> Date: Thu Feb 8 09:14:13 2024 +0530 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> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent 253fc23 commit 7dc6fd1

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

drivers/cpufreq/Kconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,33 @@ config QORIQ_CPUFREQ
334334
which are capable of changing the CPU's frequency dynamically.
335335

336336
endif
337+
338+
config ACPI_CPPC_CPUFREQ
339+
tristate "CPUFreq driver based on the ACPI CPPC spec"
340+
depends on ACPI_PROCESSOR
341+
depends on ARM || ARM64 || RISCV
342+
select ACPI_CPPC_LIB
343+
help
344+
This adds a CPUFreq driver which uses CPPC methods
345+
as described in the ACPIv5.1 spec. CPPC stands for
346+
Collaborative Processor Performance Controls. It
347+
is based on an abstract continuous scale of CPU
348+
performance values which allows the remote power
349+
processor to flexibly optimize for power and
350+
performance. CPPC relies on power management firmware
351+
support for its operation.
352+
353+
If in doubt, say N.
354+
355+
config ACPI_CPPC_CPUFREQ_FIE
356+
bool "Frequency Invariance support for CPPC cpufreq driver"
357+
depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
358+
depends on ARM || ARM64 || RISCV
359+
default y
360+
help
361+
This extends frequency invariance support in the CPPC cpufreq driver,
362+
by using CPPC delivered and reference performance counters.
363+
364+
If in doubt, say N.
365+
337366
endmenu

drivers/cpufreq/Kconfig.arm

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,6 @@
33
# ARM CPU Frequency scaling drivers
44
#
55

6-
config ACPI_CPPC_CPUFREQ
7-
tristate "CPUFreq driver based on the ACPI CPPC spec"
8-
depends on ACPI_PROCESSOR
9-
select ACPI_CPPC_LIB
10-
help
11-
This adds a CPUFreq driver which uses CPPC methods
12-
as described in the ACPIv5.1 spec. CPPC stands for
13-
Collaborative Processor Performance Controls. It
14-
is based on an abstract continuous scale of CPU
15-
performance values which allows the remote power
16-
processor to flexibly optimize for power and
17-
performance. CPPC relies on power management firmware
18-
support for its operation.
19-
20-
If in doubt, say N.
21-
22-
config ACPI_CPPC_CPUFREQ_FIE
23-
bool "Frequency Invariance support for CPPC cpufreq driver"
24-
depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
25-
default y
26-
help
27-
This extends frequency invariance support in the CPPC cpufreq driver,
28-
by using CPPC delivered and reference performance counters.
29-
30-
If in doubt, say N.
31-
326
config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM
337
tristate "Allwinner nvmem based SUN50I CPUFreq driver"
348
depends on ARCH_SUNXI

0 commit comments

Comments
 (0)