diff options
author | Lori Hikichi <lori.hikichi@broadcom.com> | 2017-08-14 12:00:39 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-12-28 14:53:34 -0800 |
commit | 85151a6b0b331f7bc4d9534d6138bfdd3e206b0d (patch) | |
tree | 641aa0820acb441ee4a6633527fea365b9a5885f /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | becf123772a9ef15823a3f495478fe68e45b5028 (diff) | |
download | linux-85151a6b0b331f7bc4d9534d6138bfdd3e206b0d.tar.gz linux-85151a6b0b331f7bc4d9534d6138bfdd3e206b0d.tar.xz |
clk: iproc: Fix error in the pll post divider rate calculation
The pll post divider code was using DIV_ROUND_UP when determining the
divider value best suited to produce the target frequency.
Using DIV_ROUND_CLOSEST will give us better divider values when
the division results in a small remainder.
Also, change the post divider clock over to the determine_rate api
instead of round_rate.
Signed-off-by: Simran Rai <ssimran@broadcom.com>
Signed-off-by: Lori Hikichi <lori.hikichi@broadcom.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions