diff options
author | Adam Ford <aford173@gmail.com> | 2024-09-14 14:27:48 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-10-17 16:13:36 +0300 |
commit | 058ea4a06704c6ad3032bdb3ead9ed3dc1f7fe6e (patch) | |
tree | dd2d0b5a3b39f8bebf888d4902a262104789fa08 /tools/perf/scripts/python/stackcollapse.py | |
parent | 1951dbb41d1dff7c135eed4fa1a6330df6971549 (diff) | |
download | linux-058ea4a06704c6ad3032bdb3ead9ed3dc1f7fe6e.tar.xz |
phy: freescale: fsl-samsung-hdmi: Use closest divider
Currently, if the clock values cannot be set to the exact rate,
the round_rate and set_rate functions use the closest value found in
the look-up-table. In preparation of removing values from the LUT
that can be calculated evenly with the integer calculator, it's
necessary to ensure to check both the look-up-table and the integer
divider clock values to get the closest values to the requested
value. It does this by measuring the difference between the
requested clock value and the closest value in both integer divider
calucator and the fractional clock look-up-table.
Which ever has the smallest difference between them is returned as
the closest rate.
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Tested-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20240914112816.520224-5-aford173@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions