Force a CPU frequency on an odroid (running linaro 3.0.x kernel)

Update: This works on 3.8.x kernels too. I used MIN_SPEED and MAX_SPEED of 1704000 instead.

For the 3.8.x kernels —

CPU speed file:

/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Temperature file:

/sys/class/thermal/thermal_zone0/temp

From here: http://forum.odroid.com/viewtopic.php?f=65&t=2795

sudo apt-get install cpufrequtils

Create a file: /etc/default/cpufrequtils with these contents:

ENABLE="true"
GOVERNOR="performance"
MAX_SPEED=1700000
MIN_SPEED=1700000

Note:If your CPU temperature hits 85C, this will be overridden to force it down to 800Mhz. Check with this script:

Burn CPU:

while true
do
     sleep .5
     cpufreq-info |grep "current CPU"
     sudo cat /sys/devices/platform/tmu/temperature
done

06/3/14