]> 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:29:47 +0000 (16:29 +0200)
commit9ce1ee22dc6829175ec2dfd74d78d79eb20e0732
tree35509896ca585f5c1682d60b603af08a0f38ac9d
parent55fcbe5f60865717479a9d6a8d8d076c8f443759
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