summaryrefslogtreecommitdiffstats
path: root/source/a/sysvinit-scripts/scripts/rc.cpufreq
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/sysvinit-scripts/scripts/rc.cpufreq')
-rw-r--r--source/a/sysvinit-scripts/scripts/rc.cpufreq10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/a/sysvinit-scripts/scripts/rc.cpufreq b/source/a/sysvinit-scripts/scripts/rc.cpufreq
index 10d713f09..739d99b86 100644
--- a/source/a/sysvinit-scripts/scripts/rc.cpufreq
+++ b/source/a/sysvinit-scripts/scripts/rc.cpufreq
@@ -37,17 +37,17 @@ if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" =
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
-fi
-
# To force a particular option without having to edit this file, uncomment the
# line in /etc/default/cpufreq and edit it to select the desired option:
if [ -r /etc/default/cpufreq ]; then
. /etc/default/cpufreq
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
+fi
+
# If you need to load a specific CPUFreq driver, load it here. Most likely you don't.
#/sbin/modprobe acpi-cpufreq