(十)修改开发板主频

如下图所示,使用命令
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors”,其中其中
userspace 表示用户模式,在此模式下允许其他用户程序调节 CPU 频率。
如下图所示,使用命令
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies ”查看 iMX6UL 可以支持的主频。
 
如下图所示,使用查询命令
“cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq”,查看当前频率。
如下图所示,使用命令修改为“198000”
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 198000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
修改之后,使用查询命令,修改为 198000 了。
 

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq;
cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq;
cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq;
cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq;

原文地址:https://www.cnblogs.com/zhangshenghui/p/11250257.html