Skip to contentSkip to conversation

Use raw spinlocks in NMI print sequencing.

PATCH New Steven Rostedt 1 participant 1 message Jun 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use raw spinlocks in NMI print sequencing.

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

arch/x86_64/kernel/nmi.c +1 -1
Index: 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);