1. 进入内核源码目录,进行内核配置
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
2.内核菜单配置
在选项 "CPU Power Management—>CPU Frequency scaling" ,修改配置选项 "Default CPUFreq governor",该选项的默认配置为 ondemand,该配置下,CPU的频率为1Ghz。
修改 Default CPUFreq governor,配置为 performance模式,则CPU频率为1.5Ghz。
内核配置如下:
3. 重新编译内核,替换内核镜像后,查看cpu当前频率
使用 cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq 查看当前cpu 频率