summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJia-Wei Chang <jia-wei.chang@mediatek.com>2022-05-05 14:52:20 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2022-05-06 07:10:42 +0300
commit6a17b3876bc8303612d7ad59ecf7cbc0db418bcd (patch)
tree1878638b7309089ebaaf2918226404f6d4d0a0d4 /tools/perf/scripts/python/stackcollapse.py
parentead858bd128d4ecfb2107115190d52d50416ec45 (diff)
downloadlinux-6a17b3876bc8303612d7ad59ecf7cbc0db418bcd.tar.xz
cpufreq: mediatek: Refine mtk_cpufreq_voltage_tracking()
Because the difference of sram and proc should in a range of min_volt_shift and max_volt_shift. We need to adjust the sram and proc step by step. We replace VOLT_TOL (voltage tolerance) with the platform data and update the logic to determine the voltage boundary and invoking regulator_set_voltage. - Use 'sram_min_volt' and 'sram_max_volt' to determine the voltage boundary of sram regulator. - Use (sram_min_volt - min_volt_shift) and 'proc_max_volt' to determine the voltage boundary of vproc regulator. Moreover, to prevent infinite loop when tracking voltage, we calculate the maximum value for each platform data. We assume min voltage is 0 and tracking target voltage using min_volt_shift for each iteration. The retry_max is 3 times of expeted iteration count. Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com> Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions