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
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