aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 10:08:10 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-07-27 15:07:15 -0400
commitb20de918527a9c1558b3e8a02f935cf4cb53e3ba (patch)
tree6f2e8b1a68998152e0d924a6f414833a9ff6a64e
parent938ba5ebeee2f7e81a137d7eac73fb014d5fc1a5 (diff)
softlockup: Convert to atomic_spinlock
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-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 @@
20 20
21#include <asm/irq_regs.h> 21#include <asm/irq_regs.h>
22 22
23static DEFINE_SPINLOCK(print_lock); 23static DEFINE_ATOMIC_SPINLOCK(print_lock);
24 24
25static DEFINE_PER_CPU(unsigned long, touch_timestamp); 25static DEFINE_PER_CPU(unsigned long, touch_timestamp);
26static DEFINE_PER_CPU(unsigned long, print_timestamp); 26static DEFINE_PER_CPU(unsigned long, print_timestamp);
@@ -149,7 +149,7 @@ void softlockup_tick(void)
149 149
150 per_cpu(print_timestamp, this_cpu) = touch_timestamp; 150 per_cpu(print_timestamp, this_cpu) = touch_timestamp;
151 151
152 spin_lock(&print_lock); 152 atomic_spin_lock(&print_lock);
153 printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n", 153 printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n",
154 this_cpu, now - touch_timestamp, 154 this_cpu, now - touch_timestamp,
155 current->comm, task_pid_nr(current)); 155 current->comm, task_pid_nr(current));
@@ -159,7 +159,7 @@ void softlockup_tick(void)
159 show_regs(regs); 159 show_regs(regs);
160 else 160 else
161 dump_stack(); 161 dump_stack();
162 spin_unlock(&print_lock); 162 atomic_spin_unlock(&print_lock);
163 163
164 if (softlockup_panic) 164 if (softlockup_panic)
165 panic("softlockup: hung tasks"); 165 panic("softlockup: hung tasks");