[RK3288][Android6.0] 调试笔记 --- CPU使用的频率表
生活随笔
收集整理的這篇文章主要介紹了
[RK3288][Android6.0] 调试笔记 --- CPU使用的频率表
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
系統中有三張CPU相關的頻率表:
1. rockchip-cpufreq.c:
/* Frequency table index must be sequential starting at 0 */ static struct cpufreq_frequency_table default_freq_table[] = {{.frequency = 312 * 1000, .index = 875 * 1000},{.frequency = 504 * 1000, .index = 925 * 1000},{.frequency = 816 * 1000, .index = 975 * 1000},{.frequency = 1008 * 1000, .index = 1075 * 1000},{.frequency = 1200 * 1000, .index = 1150 * 1000},{.frequency = 1416 * 1000, .index = 1250 * 1000},{.frequency = 1608 * 1000, .index = 1350 * 1000},{.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table *freq_table = default_freq_table;2. rk3288.dtsi:
&clk_core_dvfs_table {operating-points = </* KHz uV */126000 900000216000 900000312000 900000408000 900000600000 900000696000 950000816000 10000001008000 10500001200000 11000001416000 12000001512000 13000001608000 1350000// 1704000 1350000// 1800000 1400000>;//......};3. rk3288.dtsi:
&clk_core_dvfs_table {//......support-pvtm = <1>;pvtm-operating-points = </* KHz uV margin(uV)*/126000 900000 25000216000 900000 25000312000 900000 25000408000 900000 25000600000 900000 25000696000 950000 25000816000 1000000 250001008000 1050000 250001200000 1100000 250001416000 1200000 250001512000 1300000 250001608000 1350000 25000>;status="okay";};最終用的是第三張.
代碼調用:
第一張表被覆蓋的地方:
dvfs.c:
第二張表被覆蓋的地方:
int clk_enable_dvfs(struct dvfs_node *clk_dvfs_node) {if (clk_dvfs_node->support_pvtm)pvtm_set_dvfs_table(clk_dvfs_node); }總結
以上是生活随笔為你收集整理的[RK3288][Android6.0] 调试笔记 --- CPU使用的频率表的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Distantly Supervised
- 下一篇: android中gravity什么意思,