Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
CPU的频率调节模式:
1. Performance. 不考虑耗电,只用最高频率。
2. Interactive. 直接上最高频率,然后看CPU负荷慢慢降低。
3. Powersave. 通常以最低频率运行,流畅度会受影响,一般不会用这个吧!
4. Userspace. 可以在用户空间手动调节频率。
5. Ondemand. 定期检查负载,根据负载来调节频率。
查看目录:
位于 /sys/devices/system/cpu/cpuX, X表示cpu number.
root@rk3288:/sys/devices/system/cpu/cpu0/cpufreq # ls
affected_cpus
cpuinfo_cur_freq
cpuinfo_max_freq
cpuinfo_min_freq
cpuinfo_transition_latency
related_cpus
scaling_available_frequencies
scaling_available_governors
scaling_cur_freq
scaling_driver
scaling_governor
scaling_max_freq
scaling_min_freq
scaling_setspeed
stats
cpuinfo_cur_freq 读取的是 CPU 硬件寄存器中当前所处的运行频率。
scaling_cur_freq 读取的是缓存的 CPU 当前运行频率,而不会对 CPU 硬件寄存器进