summaryrefslogtreecommitdiff
path: root/kernel/softlockup.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 16:08:10 +0200
committerThomas Gleixner <tglx@linutronix.de>2009-07-27 21:07:15 +0200
commitb20de918527a9c1558b3e8a02f935cf4cb53e3ba (patch)
tree6f2e8b1a68998152e0d924a6f414833a9ff6a64e /kernel/softlockup.c
parent938ba5ebeee2f7e81a137d7eac73fb014d5fc1a5 (diff)
downloadlwn-b20de918527a9c1558b3e8a02f935cf4cb53e3ba.tar.gz
lwn-b20de918527a9c1558b3e8a02f935cf4cb53e3ba.zip
softlockup: Convert to atomic_spinlock
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/softlockup.c')
-rw-r--r--kernel/softlockup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/softlockup.c b/kernel/softlockup.c
index 88796c330838..62996170311d 100644
--- a/kernel/softlockup.c
+++ b/kernel/softlockup.c
@@ -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");