summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRoman Volkov <rvolkov@v1ros.org>2016-06-08 00:56:10 +0300
committerStephen Boyd <sboyd@codeaurora.org>2016-06-21 03:47:53 +0300
commitc03d795beee49ed6e96cf3832c083bf2ecaf1408 (patch)
tree79c24bbb8cdef50a01c49bcf029cbaa9ed7ca670 /tools/perf/scripts/python
parent27a0becc26ba7f84babda8c66170827af1fa308d (diff)
downloadlinux-c03d795beee49ed6e96cf3832c083bf2ecaf1408.tar.xz
clk: vt8500: rework wm8650_find_pll_bits()
PLL clock on WM8650 is calculated in the following way: M * parent [O1] => / P [O2] => / D [O3] Where O2 is 600MHz >= (M * parent) / P >= 300MHz. Current algorithm does not met this requirement, so that the function may return rates which are not supported by the hardware. This patch fixes the algorithm and simplifies the code, reducing the calculation time by ~10000 times (according to usermode app) by removing the nested loops. Signed-off-by: Roman Volkov <rvolkov@v1ros.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions