Messages in this thread Patch in this message | | | From | John Kacur <> | Subject | [PATCH 18/26] x86 - nmi: Convert nmi_lock to raw_spinlock | Date | Mon, 11 Jan 2010 22:26:48 +0100 |
| |
Convert locks that cannot sleep in preempt-rt to raw_spinlocks
See also: a76dd8f3ffcbb1bb446a9ca059b77f40fe100bf1
Signed-off-by: John Kacur <jkacur@redhat.com> --- arch/x86/kernel/apic/nmi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/apic/nmi.c b/arch/x86/kernel/apic/nmi.c index 0159a69..51bc6a6 100644 --- a/arch/x86/kernel/apic/nmi.c +++ b/arch/x86/kernel/apic/nmi.c @@ -416,13 +416,13 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason) /* We can be called before check_nmi_watchdog, hence NULL check. */ if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) { - static DEFINE_SPINLOCK(lock); /* Serialise the printks */ + static DEFINE_RAW_SPINLOCK(lock); /* Serialise the printks */ - spin_lock(&lock); + raw_spin_lock(&lock); printk(KERN_WARNING "NMI backtrace for cpu %d\n", cpu); show_regs(regs); dump_stack(); - spin_unlock(&lock); + raw_spin_unlock(&lock); cpumask_clear_cpu(cpu, to_cpumask(backtrace_mask)); rc = 1; -- 1.6.5.2
| |