How to change the processor frequency manually using the sysfs & CPUFREQ subsystem?

I do not have cpufreq-info / set, utility. How to change the processor frequency manually using sysfs and CPUFREQ?

+5
source share
1 answer

According to this :

If you use a user space slider, you can write to / sys / devices / system / cpu / cpu 0 / cpufreq / scaling_setspeed to change the current speed.

# echo 700000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 
# cat /proc/cpuinfo 
cpu MHz  : 697.252 
# echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 
# cat /proc/cpuinfo 
cpu MHz  : 976.152 

To enable a custom controller, you must write userspaceto /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:

# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+7
source

All Articles