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

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 <rafael.j.wysocki@intel.com>

+4 -1
+2 -1
drivers/cpufreq/Kconfig
··· 37 37 choice 38 38 prompt "Default CPUFreq governor" 39 39 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 40 41 default CPU_FREQ_DEFAULT_GOV_PERFORMANCE 41 42 help 42 43 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. 44 45 45 46 config CPU_FREQ_DEFAULT_GOV_PERFORMANCE 46 47 bool "performance"
+2
drivers/cpufreq/Kconfig.x86
··· 8 8 depends on X86 9 9 select ACPI_PROCESSOR if ACPI 10 10 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 11 13 help 12 14 This driver provides a P state for Intel core processors. 13 15 The driver implements an internal governor and will become