op_cpuspeed.sh: update userspace governor (if it's set)
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_cpuspeed.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
                # 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
        fi
 fi