Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=95aa12d8d196046a91ae554b1d90f8fea011667b
commit 95aa12d8d196046a91ae554b1d90f8fea011667b Author: crazy <[email protected]> Date: Sat Jan 6 01:33:21 2018 +0100 kernel-4.14.11-2-x86_64 * cpupower.sh: added support to disable C states diff --git a/source/base/kernel/cpupower b/source/base/kernel/cpupower index 9980e88..0157dd6 100644 --- a/source/base/kernel/cpupower +++ b/source/base/kernel/cpupower @@ -12,3 +12,7 @@ # Gives a hint to Intel processors about current powersaving policies. #perf_bias=0 + +# disable idle_states C states +# cpupower idle-info to find out +#disable_idle_states="" diff --git a/source/base/kernel/cpupower.sh b/source/base/kernel/cpupower.sh index 7bc899c..5fbaf26 100644 --- a/source/base/kernel/cpupower.sh +++ b/source/base/kernel/cpupower.sh @@ -42,3 +42,13 @@ fi if test -n "$_options"; then /usr/bin/cpupower set $_options fi + +_options="" + +## disable C states +if test -n "$disable_idle_states"; then + for jj in "${disable_idle_states[*]}" + do + /usr/bin/cpupower idle-set -d $jj + done +fi _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
