本文共 2837 字,大约阅读时间需要 9 分钟。
核心内容是 cpufreq_oppidx 可用查看不同频率对应的电压,电压越低越省电。
注意电压要设置在芯片规格范围内
Z91:/proc/cpufreq # ls -allls -alltotal 0dr-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
目录结构
Z91:/proc/cpufreq/MT_CPU_DVFS_LL # ls -alls -altotal 0dr-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
当前频率
Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_freqcat cpufreq_freq299000 KHzZ91:/proc/cpufreq/MT_CPU_DVFS_LL #
不同频率对于的电压
Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_oppidxcat 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_dumpcat 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
无数据
Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_voltcat cpufreq_voltVproc: 950000 uVVsram: 1150000 uV
Z91:/proc/cpufreq # cat cpufreq_debugcat cpufreq_debugcpufreq debug (log level) = 0
Z91:/proc/cpufreq # cat cpufreq_dvfs_time_profilecat cpufreq_dvfs_time_profilemax[0] = 30970 usmax[1] = 18437 usmax[2] = 0 usmax[3] = 0 usmax[4] = 0 usmax[5] = 0 us
Z91:/proc/cpufreq # cat cpufreq_power_modecat cpufreq_power_modeDefault(Normal) mode
Z91:/proc/cpufreq # cat cpufreq_sched_disablecat cpufreq_sched_disablecpufreq_sched_disable = 1
Z91:/proc/cpufreq # cat cpufreq_stress_testcat cpufreq_stress_test0
转载地址:http://socti.baihongyu.com/