drm/amd/display: refactor vupdate interrupt registration
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 6 Apr 2018 17:55:39 +0000 (13:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:54 +0000 (11:10 -0500)
commit953c2901c860da16963b48db8344bf0fd5b03040
tree2eccf98642587febc089fe36a39649cca9ffb056
parent9410a3776bbf1e172cfdb9f8b771a5ce64081a51
drm/amd/display: refactor vupdate interrupt registration

We only need to register once OS calls the interrupt control.
Also, if we are entering static screen mode, disable after ramping is done.
Disable shall be done via timer of 2 seconds regardless of ramping
complete or not, just to simplify.

Also, ramp to mid instead of min, due to better flicker performance...

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c