OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:32:16 +0000 (19:32 -0500)
commitc59802313e84bede954235b3a5dd0dd5325f49c5
treea489ac38b0f39686e5c680ae994b9768575ec43a
parent62f3abd1533900751b953d562d72c7d73978a85f
drm/amd/display: Properly round nominal frequency for SPD

[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>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c