From: Grazvydas Ignotas Date: Mon, 25 Jun 2012 21:43:24 +0000 (+0300) Subject: op_cpuspeed.sh: update userspace governor (if it's set) X-Git-Tag: sz_152~59 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=257505937560a72b5d8903315c948e1ed7ee2bef;ds=inline op_cpuspeed.sh: update userspace governor (if it's set) --- diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index 076020c..e269a11 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" DEPENDS = "zenity dbus" RDEPENDS = "zenity dbus" -PR = "r101" +PR = "r102" SRC_URI = " \ file://op_paths.sh \ 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