Skip to content

Commit d64d838

Browse files
committed
drm/msm/dpu: remove extra clk_round_rate() call
The dev_pm_opp_set_rate() already contains a call for clk_round_rate for the passed value. Stop calling it manually from _dpu_core_perf_get_core_clk_rate(). It is slightly incorrect to call it this way, as we should round the final calculated clock rate rather than rounding all the intermediate values. Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/550212/ Link: https://lore.kernel.org/r/[email protected]
1 parent 7a73594 commit d64d838

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ static u64 _dpu_core_perf_get_core_clk_rate(struct dpu_kms *kms)
294294
dpu_cstate = to_dpu_crtc_state(crtc->state);
295295
clk_rate = max(dpu_cstate->new_perf.core_clk_rate,
296296
clk_rate);
297-
clk_rate = clk_round_rate(kms->perf.core_clk,
298-
clk_rate);
299297
}
300298
}
301299

0 commit comments

Comments
 (0)