SOURCES: powersave.init - cpufreq modules loading support

freetz freetz at pld-linux.org
Sun Mar 12 20:32:17 CET 2006


Author: freetz                       Date: Sun Mar 12 19:32:17 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- cpufreq modules loading support

---- Files affected:
SOURCES:
   powersave.init (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/powersave.init
diff -u SOURCES/powersave.init:1.6 SOURCES/powersave.init:1.7
--- SOURCES/powersave.init:1.6	Sun Jan  1 22:55:50 2006
+++ SOURCES/powersave.init	Sun Mar 12 20:32:12 2006
@@ -20,17 +20,23 @@
 . /etc/powersave/thermal
 
 ACPI_EVENT_FILE="/var/run/acpid.socket"
+GOVS="`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors`"
 
 RETVAL=0
 # See how we were called.
 case "$1" in
   start)
-	# Load additional modules:
-        if [ -n "$LAPTOP_MODULES" ]; then
-            for i in $LAPTOP_MODULES; do
-                _modprobe single $i
-                done
-        fi
+	# Load default cpufreq module
+	if is_yes "$CPUFREQ_ENABLED" then;
+	    if [ -n "$CPUFREQD_MODULE" ]; then
+            	    _modprobe $i $CPUFREQD_MODULE_OPTS
+		    # Load available governors
+		    for i in $GOVS; do
+			_modprobe single $i
+		    done
+    	    fi
+	fi
+	
 	# Start daemons.
 	if [ ! -f /var/lock/subsys/powersave ]; then
 		# starting:
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/powersave.init?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list