lkml.org 
[lkml]   [2007]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH RT] Use raw spinlocks in NMI print sequencing.
From
Date
Currently NMI uses spinlocks to serialize the prints. We need these to
be raw spinlocks for PREEMPT_RT

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

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-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-19 22:15    [W:0.025 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site