aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0986-drm-amd-dal-Switch-from-busy-wait-to-sleep-when-wait.patch
blob: ffe639f0f8d17bb4298aa8ec2935e2adf2eaea0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 70ca0bbe4defb86434f0f5d1173ba9ef57cbf8b9 Mon Sep 17 00:00:00 2001
From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
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 <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 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