blob: 11cda8f82c9c480c046b66587af72be21a22a8e9 (
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
|
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date: Mon, 29 May 2017 15:33:52 +0200
Subject: [PATCH] drm/i915: init spinlock properly on -RT
THe lockinit is opencoded so need to fix it up…
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
drivers/gpu/drm/i915/i915_gem_timeline.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/drivers/gpu/drm/i915/i915_gem_timeline.c
+++ b/drivers/gpu/drm/i915/i915_gem_timeline.c
@@ -34,7 +34,12 @@ static void __intel_timeline_init(struct
tl->fence_context = context;
tl->common = parent;
#ifdef CONFIG_DEBUG_SPINLOCK
+# ifdef CONFIG_PREEMPT_RT_FULL
+ rt_mutex_init(&tl->lock.lock);
+ __rt_spin_lock_init(&tl->lock, lockname, lockclass);
+# else
__raw_spin_lock_init(&tl->lock.rlock, lockname, lockclass);
+# endif
#else
spin_lock_init(&tl->lock);
#endif
|