diff options
author | AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> | 2021-01-09 14:51:08 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-02-01 08:30:14 -0800 |
commit | 5c191fef4ce2fc4310d8174bd3861474919201e4 (patch) | |
tree | 5bb5b7b573c1590412d668cb1359a78fd942f012 /tools/perf/scripts/python/stackcollapse.py | |
parent | c703d5789590935c573bbd080a2166b72d51a017 (diff) |
drm/msm/dsi_pll_10nm: Fix dividing the same numbers twice
In function dsi_pll_calc_dec_frac we are calculating the decimal
div start parameter by dividing the decimal multiple by the
fractional multiplier: the remainder of that operation is stored
to then get programmed to the fractional divider registers of
the PLL.
It's useless to call div_u64_rem to get the remainder and *then*
call div_u64 to get the division result, as the first is already
giving that result: let's fix it by just caring about the result
of div_u64_rem.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions