Set ondemand governor to builtin when using _default_cpu_gov="ondemand" on 5.9+.

The new intel_pstate changes make this necessary to prevent governor fallback to schedutil on boot even though cpufreq.default_governor=ondemand is set.
This commit is contained in:
Tk-Glitch 2020-11-23 13:32:18 +01:00
parent dd7ee2f12a
commit 9c7a8b262d

View File

@ -903,6 +903,7 @@ _tkg_srcprep() {
_custom_commandline+=" cpufreq.default_governor=performance"
elif [ "$_default_cpu_gov" = "ondemand" ]; then
_custom_commandline+=" cpufreq.default_governor=ondemand"
sed -i -e 's/CONFIG_CPU_FREQ_GOV_ONDEMAND=m/CONFIG_CPU_FREQ_GOV_ONDEMAND=y/' ./.config
fi
msg2 "Command line set to \"$_custom_commandline\""
fi