drm/amd/display: Add a hysteresis to BTR frame multiplier
authorAric Cyr <aric.cyr@amd.com>
Fri, 1 Mar 2019 15:24:37 +0000 (10:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 04:39:48 +0000 (23:39 -0500)
commit9070d18f89a8c7c839bc2dd3b1c6fbc8864c1be5
tree13939a2c92556de104677872fdf6200596caf017
parent7fe538a4d64135d8f8e4aca8d0aedf266958025c
drm/amd/display: Add a hysteresis to BTR frame multiplier

[Why]
Flickering is observed on some displays when the number of inserted BTR
frames changes frequently.

[How]
Add in a margin of drift to prevent the inserted number of frames from
jumping around too frequently.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@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