From 257505937560a72b5d8903315c948e1ed7ee2bef Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Tue, 26 Jun 2012 00:43:24 +0300 Subject: [PATCH] op_cpuspeed.sh: update userspace governor (if it's set) --- recipes/pandora-system/pandora-scripts.bb | 2 +- recipes/pandora-system/pandora-scripts/op_cpuspeed.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2