]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Round calculated vtotal
authorRobin Chen <robin.chen@amd.com>
Fri, 23 Aug 2024 07:00:28 +0000 (15:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:11 +0000 (15:11 +0200)
commit458c54c6f9477028ed286ac8a051a200521b0c4d
tree50af73df35e381f714795664d8ff3a2095712fac
parenta2c1d68a4ab5674876daa2f2d2d23341d8d3ab54
drm/amd/display: Round calculated vtotal

commit c03fca619fc687338a3b6511fdbed94096abdf79 upstream.

[WHY]
The calculated vtotal may has 1 line deviation. To get precisely
vtotal number, round the vtotal result.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Anthony Koo <anthony.koo@amd.com>
Signed-off-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c