op_cpuspeed: show current clock
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 26 Jun 2012 10:54:02 +0000 (13:54 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 26 Jun 2012 10:55:38 +0000 (13:55 +0300)
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_cpuspeed.sh

index 3e4b64b..84752e1 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r104"
+PR = "r105"
 
 SRC_URI = " \
           file://op_paths.sh \
index beb1b7e..16a9a2e 100755 (executable)
@@ -58,7 +58,7 @@ if [ $newmhz ]; then
         if [ $newmhz -le $minmhz ]; then newmhz=$minmhz; fi
         if [ $newmhz -ge $maxmhz ]; then newmhz=$maxmhz; fi
        echo $newmhz > $device
-       echo cpu_mhz_max set to $(cat $device)
+       echo "cpu_mhz_max set to $(cat $device)"
 
        if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
                # must poke cpufreq so it does the actual clock transition
@@ -68,5 +68,6 @@ if [ $newmhz ]; then
                if [ "$gov" = "userspace" ]; then
                        echo $[ $newmhz * 1000 ] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
                fi
+               echo "current CPU clock is $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)"
        fi
 fi