X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-scripts%2Fop_cpuspeed.sh;h=61ad0e29137ab286b04a67ec13d34d96eec596c3;hp=e1eeeb7f54c4d79d7e31091a385960edad072e1a;hb=257505937560a72b5d8903315c948e1ed7ee2bef;hpb=32b3504e8dac702a6f12444f7463c130304e7e1b diff --git a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh index e1eeeb7..61ad0e2 100755 --- a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh +++ b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh @@ -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