From 70ca0bbe4defb86434f0f5d1173ba9ef57cbf8b9 Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Tue, 29 Mar 2016 11:17:58 -0400 Subject: [PATCH 0986/1110] drm/amd/dal: Switch from busy wait to sleep when waiting for pflip comletion. Signed-off-by: Andrey Grodzovsky Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c index e418422..f79cbee 100644 --- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c +++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c @@ -2077,9 +2077,7 @@ static void manage_dm_interrupts( irq_type); } else { while (acrtc->pflip_status != AMDGPU_FLIP_NONE) { - /* Spin Wait*/ - - /* Todo: Use periodic polling rather than busy wait */ + msleep(1); } amdgpu_irq_put( -- 2.7.4