diff options
-rw-r--r-- | cpufreq | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,6 +1,8 @@ #!/bin/bash +GOVERNOR=ondemand test -f /etc/sysconfig/cpufreq && . /etc/sysconfig/cpufreq + for cpu in /sys/devices/system/cpu/* ; do [ "x$GOVERNOR" != "x" ] && [ -f $cpu/cpufreq/scaling_governor ] && echo $GOVERNOR > $cpu/cpufreq/scaling_governor [ "x$MAX_FREQ" != "x" ] && [ -f $cpu/cpufreq/scaling_max_freq ] && echo $MAX_FREQ > $cpu/cpufreq/scaling_max_freq |