Skip to contentSkip to conversation

cpufreq: amd-pstate: Set default governor to schedutil

PATCH New Perry Yuan 1 participant 1 message Jun 12, 2023 CPU frequency scaling framework

lore
Share & tools
lore

Perry Yuan

author
#0 lore raw

PATCH v3 1/1 cpufreq: amd-pstate: Set default governor to schedutil

From: Mario Limonciello <[email protected]>

The Kconfig currently defaults the governor to schedutil on x86_64 only when intel-pstate and SMP have been selected.

If the kernel is built only with amd-pstate, the default governor should also be schedutil.

---
 drivers/cpufreq/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/Kconfig +1 -1
index 2c839bd2b051..a1c51abddbc5 100644
@@ -38,7 +38,7 @@ choice
 	prompt "Default CPUFreq governor"
 	default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1110_CPUFREQ
 	default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if ARM64 || ARM
-	default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if X86_INTEL_PSTATE && SMP
+	default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if (X86_INTEL_PSTATE || X86_AMD_PSTATE) && SMP
 	default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
 	help
 	  This option sets which CPUFreq governor shall be loaded at
Signature · 1 line
2.34.1