mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/amd/display: Remove redundant macro of refresh rate
[Why&How] Found that we add redundant macro on refresh rate when calculating vtotal, so we remove it. Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: Weiguang Li <wei-guang.li@amd.com> Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
01f60348d8
commit
6954103400
|
|
@ -147,7 +147,7 @@ unsigned int mod_freesync_calc_v_total_from_refresh(
|
|||
((unsigned int)(div64_u64((1000000000ULL * 1000000),
|
||||
refresh_in_uhz)));
|
||||
|
||||
if (MICRO_HZ_TO_HZ(refresh_in_uhz) <= stream->timing.min_refresh_in_uhz) {
|
||||
if (refresh_in_uhz <= stream->timing.min_refresh_in_uhz) {
|
||||
/* When the target refresh rate is the minimum panel refresh rate,
|
||||
* round down the vtotal value to avoid stretching vblank over
|
||||
* panel's vtotal boundary.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user