]> 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>
Fri, 4 Oct 2024 14:33:28 +0000 (16:33 +0200)
commit597f862f516ae141406e12668eaaf300afebd844
tree7c352a58710a7f92aeae4db80354d2febbebb52a
parentfbf3cff7c0586ecb1153e9bb8230929c22b317d9
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