Skip to content

Commit 7ee1378

Browse files
vlsunilpalmer-dabbelt
authored andcommitted
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Pierre Gondois <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Acked-by: Sudeep Holla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 30f3ffb commit 7ee1378

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
@@ -302,4 +302,33 @@ config QORIQ_CPUFREQ
302302
which are capable of changing the CPU's frequency dynamically.
303303

304304
endif
305+
306+
config ACPI_CPPC_CPUFREQ
307+
tristate "CPUFreq driver based on the ACPI CPPC spec"
308+
depends on ACPI_PROCESSOR
309+
depends on ARM || ARM64 || RISCV
310+
select ACPI_CPPC_LIB
311+
help
312+
This adds a CPUFreq driver which uses CPPC methods
313+
as described in the ACPIv5.1 spec. CPPC stands for
314+
Collaborative Processor Performance Controls. It
315+
is based on an abstract continuous scale of CPU
316+
performance values which allows the remote power
317+
processor to flexibly optimize for power and
318+
performance. CPPC relies on power management firmware
319+
support for its operation.
320+
321+
If in doubt, say N.
322+
323+
config ACPI_CPPC_CPUFREQ_FIE
324+
bool "Frequency Invariance support for CPPC cpufreq driver"
325+
depends on ACPI_CPPC_CPUFREQ && GENERIC_ARCH_TOPOLOGY
326+
depends on ARM || ARM64 || RISCV
327+
default y
328+
help
329+
This extends frequency invariance support in the CPPC cpufreq driver,
330+
by using CPPC delivered and reference performance counters.
331+
332+
If in doubt, say N.
333+
305334
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)