CPU当前的频率

来源:互联网 发布:出知西安之咸宁 编辑:程序博客网 时间:2024/05/13 20:13

To have frequency on Android, just read these special files in /sys directory:

#cat "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"#cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq"#cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"

You will have current, min and max Frequency allowed.

0 0