Skip to content

Commit a00ec38

Browse files
committed
cpufreq: intel_pstate: Select schedutil as the default governor
Modify cpufreq Kconfig to select schedutil as the default governor if the intel_pstate driver has been selected and SMP support is enabled (because schedutil depends on SMP). Also select schedutil as well as the performance governor from the intel_pstate Kconfig section to ensure the equivalence of the passive and active mode governor configuration options. Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5ac5411 commit a00ec38

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/cpufreq/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ config CPU_FREQ_STAT
3737
choice
3838
prompt "Default CPUFreq governor"
3939
default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ
40+
default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if X86_INTEL_PSTATE && SMP
4041
default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
4142
help
4243
This option sets which CPUFreq governor shall be loaded at
43-
startup. If in doubt, select 'performance'.
44+
startup. If in doubt, use the default setting.
4445

4546
config CPU_FREQ_DEFAULT_GOV_PERFORMANCE
4647
bool "performance"

drivers/cpufreq/Kconfig.x86

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ config X86_INTEL_PSTATE
88
depends on X86
99
select ACPI_PROCESSOR if ACPI
1010
select ACPI_CPPC_LIB if X86_64 && ACPI && SCHED_MC_PRIO
11+
select CPU_FREQ_GOV_PERFORMANCE
12+
select CPU_FREQ_GOV_SCHEDUTIL if SMP
1113
help
1214
This driver provides a P state for Intel core processors.
1315
The driver implements an internal governor and will become

0 commit comments

Comments
 (0)