Android 系统(147)---proc—cpufreq Android系统 proc—cpufreq 目录,查看 CPU 电压

Android系统 proc—cpufreq 目录,查看 CPU 电压

一、目录结构

核心内容是 cpufreq_oppidx 可用查看不同频率对应的电压,电压越低越省电。

注意电压要设置在芯片规格范围内

http://www.shafa.com/articles/zgqLgjzqmhizEYvm.html

Z91:/proc/cpufreq # ls -all
ls -all
total 0
dr-xr-xr-x   3 root   root   0 2018-01-12 17:08 .
dr-xr-xr-x 432 root   root   0 1970-01-01 08:00 ..
dr-xr-xr-x   2 root   root   0 2018-01-12 17:08 MT_CPU_DVFS_LL
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_debug
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_dvfs_time_profile
-rw-rw----   1 system system 0 2018-01-12 17:08 cpufreq_power_mode
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_sched_disable
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_stress_test

1.MT_CPU_DVFS_LL

目录结构

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # ls -al
ls -al
total 0
dr-xr-xr-x 2 root root 0 2018-01-12 17:09 .
dr-xr-xr-x 3 root root 0 2018-01-12 17:08 ..
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_freq
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_oppidx
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_turbo_mode
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_volt

1.1 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_freq

当前频率

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_freq
cat cpufreq_freq
299000 KHz
Z91:/proc/cpufreq/MT_CPU_DVFS_LL #

1.2 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_oppidx

不同频率对于的电压

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_oppidx
cat cpufreq_oppidx
[MT_CPU_DVFS_LL/0]
cpufreq_oppidx = 0
        0  (1274000, 118750)
        1  (1235000, 118125)
        2  (1196000, 116875)
        3  (1170000, 116875)
        4  (1105000, 115000)
        5  (1053000, 113750)
        6  (1001000, 112500)
        7  (962000, 111875)
        8  (910000, 110000)
        9  (845000, 108750)
        10 (702000, 105000)
        11 (624000, 103125)
        12 (546000, 101250)
        13 (416000, 98125)
        14 (338000, 96250)
        15 (299000, 95000)


===========================================
Z91:/proc/gpufreq # cat gpufreq_opp_dump
cat gpufreq_opp_dump
[0] freq = 450000, volt = 115000, idx = 0
[1] freq = 400000, volt = 111875, idx = 1
[2] freq = 350000, volt = 108750, idx = 2
[3] freq = 290000, volt = 105000, idx = 3

1.3 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_turbo_mode

无数据

1.4 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_volt

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_volt
cat cpufreq_volt
Vproc: 950000 uV
Vsram: 1150000 uV

2.cpufreq_debug

Z91:/proc/cpufreq # cat cpufreq_debug
cat cpufreq_debug
cpufreq debug (log level) = 0

3.cpufreq_dvfs_time_profile

Z91:/proc/cpufreq # cat cpufreq_dvfs_time_profile
cat cpufreq_dvfs_time_profile
max[0] = 30970 us
max[1] = 18437 us
max[2] = 0 us
max[3] = 0 us
max[4] = 0 us
max[5] = 0 us

4.cpufreq_power_mode

Z91:/proc/cpufreq # cat cpufreq_power_mode
cat cpufreq_power_mode
Default(Normal) mode

5.cpufreq_sched_disable

Z91:/proc/cpufreq # cat cpufreq_sched_disable
cat cpufreq_sched_disable
cpufreq_sched_disable = 1

6.cpufreq_stress_test

Z91:/proc/cpufreq # cat cpufreq_stress_test
cat cpufreq_stress_test
0

一、目录结构

核心内容是 cpufreq_oppidx 可用查看不同频率对应的电压,电压越低越省电。

注意电压要设置在芯片规格范围内

http://www.shafa.com/articles/zgqLgjzqmhizEYvm.html

Z91:/proc/cpufreq # ls -all
ls -all
total 0
dr-xr-xr-x   3 root   root   0 2018-01-12 17:08 .
dr-xr-xr-x 432 root   root   0 1970-01-01 08:00 ..
dr-xr-xr-x   2 root   root   0 2018-01-12 17:08 MT_CPU_DVFS_LL
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_debug
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_dvfs_time_profile
-rw-rw----   1 system system 0 2018-01-12 17:08 cpufreq_power_mode
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_sched_disable
-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_stress_test

1.MT_CPU_DVFS_LL

目录结构

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # ls -al
ls -al
total 0
dr-xr-xr-x 2 root root 0 2018-01-12 17:09 .
dr-xr-xr-x 3 root root 0 2018-01-12 17:08 ..
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_freq
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_oppidx
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_turbo_mode
-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_volt

1.1 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_freq

当前频率

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_freq
cat cpufreq_freq
299000 KHz
Z91:/proc/cpufreq/MT_CPU_DVFS_LL #

1.2 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_oppidx

不同频率对于的电压

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_oppidx
cat cpufreq_oppidx
[MT_CPU_DVFS_LL/0]
cpufreq_oppidx = 0
        0  (1274000, 118750)
        1  (1235000, 118125)
        2  (1196000, 116875)
        3  (1170000, 116875)
        4  (1105000, 115000)
        5  (1053000, 113750)
        6  (1001000, 112500)
        7  (962000, 111875)
        8  (910000, 110000)
        9  (845000, 108750)
        10 (702000, 105000)
        11 (624000, 103125)
        12 (546000, 101250)
        13 (416000, 98125)
        14 (338000, 96250)
        15 (299000, 95000)


===========================================
Z91:/proc/gpufreq # cat gpufreq_opp_dump
cat gpufreq_opp_dump
[0] freq = 450000, volt = 115000, idx = 0
[1] freq = 400000, volt = 111875, idx = 1
[2] freq = 350000, volt = 108750, idx = 2
[3] freq = 290000, volt = 105000, idx = 3

1.3 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_turbo_mode

无数据

1.4 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_volt

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_volt
cat cpufreq_volt
Vproc: 950000 uV
Vsram: 1150000 uV

2.cpufreq_debug

Z91:/proc/cpufreq # cat cpufreq_debug
cat cpufreq_debug
cpufreq debug (log level) = 0

3.cpufreq_dvfs_time_profile

Z91:/proc/cpufreq # cat cpufreq_dvfs_time_profile
cat cpufreq_dvfs_time_profile
max[0] = 30970 us
max[1] = 18437 us
max[2] = 0 us
max[3] = 0 us
max[4] = 0 us
max[5] = 0 us

4.cpufreq_power_mode

Z91:/proc/cpufreq # cat cpufreq_power_mode
cat cpufreq_power_mode
Default(Normal) mode

5.cpufreq_sched_disable

Z91:/proc/cpufreq # cat cpufreq_sched_disable
cat cpufreq_sched_disable
cpufreq_sched_disable = 1

6.cpufreq_stress_test

Z91:/proc/cpufreq # cat cpufreq_stress_test
cat cpufreq_stress_test
0

猜你喜欢

转载自blog.csdn.net/zhangbijun1230/article/details/80918722