diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2018-08-28 22:05:19 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-08-29 09:00:38 +0200 |
commit | 38dfc4aa131a87735dfc8629c3394c7d2670e9d5 (patch) | |
tree | b34469310a5bc67af355f7145a9dd2cd6e59495c /source/a/sysvinit-scripts/scripts | |
parent | b70192b9212452c9cca2049c9e718ea7d88dd765 (diff) | |
download | current-38dfc4aa131a87735dfc8629c3394c7d2670e9d5.tar.gz |
Tue Aug 28 22:05:19 UTC 201820180828220519
a/sysvinit-scripts-2.1-noarch-18.txz: Rebuilt.
rc.cpufreq: for CPUs that use intel_pstate, default to the performance
governor. The performance governor provides power savings while avoiding
the ramp-up lag caused by using "ondemand", which defaults to "powersave"
on these systems. Thanks to EdGr.
d/bison-3.1-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/sysvinit-scripts/scripts')
-rw-r--r-- | source/a/sysvinit-scripts/scripts/rc.cpufreq | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/a/sysvinit-scripts/scripts/rc.cpufreq b/source/a/sysvinit-scripts/scripts/rc.cpufreq index cafcb66a..24adb8d9 100644 --- a/source/a/sysvinit-scripts/scripts/rc.cpufreq +++ b/source/a/sysvinit-scripts/scripts/rc.cpufreq @@ -29,6 +29,14 @@ # also provides information about the recent load. SCALING_GOVERNOR=ondemand +# For CPUs using intel_pstate, always use the performance governor. This also +# 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 /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver)" = "intel_pstate" ]; then + SCALING_GOVERNOR="performance" +fi + # If rc.cpufreq is given an option, use it for the CPU scaling governor instead: if [ ! -z "$1" -a "$1" != "start" ]; then SCALING_GOVERNOR=$1 |