]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix and simplify apply_below_the_range()
authorMario Kleiner <mario.kleiner.de@gmail.com>
Fri, 26 Apr 2019 21:40:14 +0000 (23:40 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Apr 2019 19:59:35 +0000 (14:59 -0500)
commit9f9742a8ad6efb52b67834c02b9a548500760d45
tree4d8b8a4def53b463707018825395794e0ccc241a
parent0c87cc57ed794735fa0f35c9e693f5bd23342149
drm/amd/display: Fix and simplify apply_below_the_range()

The comparison of inserted_frame_duration_in_us against a
duration calculated from max_refresh_in_uhz is both wrong
in its math and not needed, as the min_duration_in_us value
is already cached in in_out_vrr for reuse. No need to
recalculate it wrongly at each invocation.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c