op_cpuspeed.sh: update userspace governor (if it's set)
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Jun 2012 21:43:24 +0000 (00:43 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 Jun 2012 21:43:46 +0000 (00:43 +0300)
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_cpuspeed.sh

index 076020c..e269a11 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r101"
+PR = "r102"
 
 SRC_URI = " \
           file://op_paths.sh \
index e1eeeb7..61ad0e2 100755 (executable)
@@ -61,5 +61,8 @@ if [ $newmhz ]; then
                # according to new limits
                gov=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
                echo $gov > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+               if [ "$gov" = "userspace" ]; then
+                       echo $[ $newmhz * 1000 ] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
+               fi
        fi
 fi