summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpufreq2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpufreq b/cpufreq
index a017877..2a3e6ac 100644
--- a/cpufreq
+++ b/cpufreq
@@ -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