From: Grazvydas Ignotas Date: Tue, 26 Jun 2012 10:54:02 +0000 (+0300) Subject: op_cpuspeed: show current clock X-Git-Tag: sz_152~53 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=967f7088958bde6173b0e9d304f983aa4a3d7787;ds=inline op_cpuspeed: show current clock --- diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index 3e4b64b..84752e1 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 = "r104" +PR = "r105" 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 beb1b7e..16a9a2e 100755 --- a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh +++ b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh @@ -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