Hi, below is the way to do it suppose the max CPU Frequency is 792 MHz and I want to change from ondemand to performance governor. You can add these lines to any of the init.rc scripts to make these settings
/*Setting the MAX Scaling frequency for CPU*/
echo "7920000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "7920000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "7920000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo "7920000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
/*Setting the CPU Freq governor to Performance*/
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
/*Verifying the changes*/
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq