[PATCH] RT: convert cpupri spinlock_t to raw_spinlock_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ghaskins@xxxxxxxxxx>
---

 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 {

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux