[PATCH RT] Use raw spinlocks in NMI print sequencing.

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

 



Currently NMI uses spinlocks to serialize the prints. We need these to
be raw spinlocks for PREEMPT_RT

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Index: linux-2.6.21-rt9/arch/x86_64/kernel/nmi.c
===================================================================
--- linux-2.6.21-rt9.orig/arch/x86_64/kernel/nmi.c
+++ linux-2.6.21-rt9/arch/x86_64/kernel/nmi.c
@@ -949,7 +949,7 @@ int __kprobes nmi_watchdog_tick(struct p
 	}
 
 	if (cpu_isset(cpu, backtrace_mask)) {
-		static DEFINE_SPINLOCK(lock);	/* Serialise the printks */
+		static DEFINE_RAW_SPINLOCK(lock);	/* Serialise the printks */
 
 		spin_lock(&lock);
 		printk("NMI backtrace for cpu %d\n", cpu);


-
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