drm/amd/display: Only round InfoFrame refresh rates
authorAric Cyr <aric.cyr@amd.com>
Sun, 9 Feb 2020 17:31:25 +0000 (12:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:04:01 +0000 (11:04 -0500)
commit3fc6376ed6f2f67bc9fb0c7a3cf07967d6aa6216
tree536aa031b1181938ce4e2b207c0d2f9766a1e0d0
parent0062972b9d9f888d0273c6496769d02e8f509135
drm/amd/display: Only round InfoFrame refresh rates

[Why]
When calculating nominal refresh rates, don't round.
Only the VSIF needs to be rounded.

[How]
Revert rounding change for nominal and just round when forming the
FreeSync VSIF.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c