DORMANTno replies

[PATCH] RT: convert cpupri spinlock_t to raw_spinlock_t

From: Gregory Haskins <hidden>
Date: 2007-11-15 05:01:52
Subsystem: the rest · Maintainer: Linus Torvalds

Hi Steven,
   This patch should fix the hang you were seeing in 24-rc2-rt1-pre9 with "#8"
applied.  I meant to bring this required -rt specific change up when we spoke
on IRC earlier, but it slipped through the cracks. :(  Sorry 'bout that.

Regards,
-Greg


--------------------

RT: convert cpupri spinlock_t to raw_spinlock_t

We recently started preparing some of the scheduler changes for upstream
merginging.  Part of this work involved changing the original raw_spinlock
used in cpupri to a spinlock since this is proper use for a mainline change.
However, in order to continue to use this patch back in -rt, we need to
restore the lock back to raw or the kernel will hang during bootup.

So this patch does the conversion, but should not go upstream with the rest
of the scheduler enhancements until the -rt spinlock work is also merged.

Signed-off-by: Gregory Haskins <redacted>
---

 kernel/sched_cpupri.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched_cpupri.c b/kernel/sched_cpupri.c
index 09e27eb..91cc9c8 100644
--- a/kernel/sched_cpupri.c
+++ b/kernel/sched_cpupri.c
@@ -39,8 +39,8 @@
 
 struct pri_vec
 {
-	spinlock_t lock;
-	cpumask_t  mask;
+	raw_spinlock_t lock;
+	cpumask_t      mask;
 };
 
 struct cpu_priority {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help