rc.cpufreq: also default to "performance" for amd-pstate-epp.

This commit is contained in:
Tom Mortensen
2024-03-08 11:56:47 -08:00
parent 8d48faa815
commit 74e3390eeb
+2 -1
View File
@@ -42,7 +42,8 @@ SYSTEM="/sys/devices/system/cpu"
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [[ $(cat $SYSTEM/cpu0/cpufreq/scaling_driver 2>/dev/null) == intel_pstate ]]; then
if [[ $(cat $SYSTEM/cpu0/cpufreq/scaling_driver 2>/dev/null) == intel_pstate ||
$(cat $SYSTEM/cpu0/cpufreq/scaling_driver 2>/dev/null) == amd-pstate-epp ]]; then
SCALING_GOVERNOR="performance"
fi