Commit b20de918 authored by Thomas Gleixner's avatar Thomas Gleixner

softlockup: Convert to atomic_spinlock

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 938ba5eb
......@@ -20,7 +20,7 @@
#include <asm/irq_regs.h>
static DEFINE_SPINLOCK(print_lock);
static DEFINE_ATOMIC_SPINLOCK(print_lock);
static DEFINE_PER_CPU(unsigned long, touch_timestamp);
static DEFINE_PER_CPU(unsigned long, print_timestamp);
......@@ -149,7 +149,7 @@ void softlockup_tick(void)
per_cpu(print_timestamp, this_cpu) = touch_timestamp;
spin_lock(&print_lock);
atomic_spin_lock(&print_lock);
printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n",
this_cpu, now - touch_timestamp,
current->comm, task_pid_nr(current));
......@@ -159,7 +159,7 @@ void softlockup_tick(void)
show_regs(regs);
else
dump_stack();
spin_unlock(&print_lock);
atomic_spin_unlock(&print_lock);
if (softlockup_panic)
panic("softlockup: hung tasks");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment