调整频率
当前内核中支持的所有cpufreq governor类型:
root@3506-buildroot:/# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
ondemand userspace performance
其中userspace表示用户模式,在此模式下允许用户程序调节CPU频率。
查看当前CPU支持的频率档位
root@3506-buildroot:/# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
600000 800000 1008000 1200000 1296000 1416000 1512000
设置为用户模式,修改频率为1200000:
root@3506-buildroot:/# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
root@3506-buildroot:/# echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
查看修改后的频率
root@3506-buildroot:/# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1200000
作者:SteveChen 创建时间:2025-04-11 20:02
最后编辑:SteveChen 更新时间:2025-04-11 20:26
最后编辑:SteveChen 更新时间:2025-04-11 20:26