aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorWeiguang Li <[email protected]>2025-06-12 03:10:12 +0000
committerAlex Deucher <[email protected]>2025-06-24 13:55:58 +0000
commit69541034001b69378f48a6c4f91ef637674ce616 (patch)
tree1e5cdcc73a9d4e400125d0df5a56dd809a15eda7 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parentdrm/amd/display: Fix 'failed to blank crtc!' (diff)
downloadkernel-69541034001b69378f48a6c4f91ef637674ce616.tar.gz
kernel-69541034001b69378f48a6c4f91ef637674ce616.zip
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 <[email protected]> Signed-off-by: Weiguang Li <[email protected]> Signed-off-by: Fangzhi Zuo <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
-rw-r--r--drivers/gpu/drm/amd/display/modules/freesync/freesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index 3ba9b62ba70b..6a939f2f2fb9 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -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.