drm/amd/display: Properly round nominal frequency for SPD
authorAric Cyr <aric.cyr@amd.com>
Wed, 11 Sep 2019 20:17:08 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:44:02 +0000 (16:44 +0100)
commit2dc436de7ad6aa1025d0c78eefac4aa7ececc44a
treef66cc4338ccd2a087695b6d542a2fd334dd4f8eb
parent4754e8234e06393d98d95c4188e6661ed0b1da5a
drm/amd/display: Properly round nominal frequency for SPD

[ Upstream commit c59802313e84bede954235b3a5dd0dd5325f49c5 ]

[Why]
Some displays rely on the SPD verticle frequency maximum value.
Must round the calculated refresh rate to the nearest integer.

[How]
Round the nominal calculated refresh rate to the nearest whole
integer.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c