public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.13-rc1] Make ia64 die() preempt safe
@ 2005-07-02  6:26 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2005-07-02  6:26 UTC (permalink / raw)
  To: linux-ia64

Make ia64 die() preempt safe.

SIgned-off-by: Keith Owens <kaos@sgi.com>

Index: linux/arch/ia64/kernel/traps.c
=================================--- linux.orig/arch/ia64/kernel/traps.c	2005-07-01 19:25:06.388160657 +1000
+++ linux/arch/ia64/kernel/traps.c	2005-07-01 19:25:10.413553343 +1000
@@ -90,14 +90,16 @@ die (const char *str, struct pt_regs *re
 		.lock_owner_depth =	0
 	};
 	static int die_counter;
+	int cpu = get_cpu();
 
-	if (die.lock_owner != smp_processor_id()) {
+	if (die.lock_owner != cpu) {
 		console_verbose();
 		spin_lock_irq(&die.lock);
-		die.lock_owner = smp_processor_id();
+		die.lock_owner = cpu;
 		die.lock_owner_depth = 0;
 		bust_spinlocks(1);
 	}
+	put_cpu();
 
 	if (++die.lock_owner_depth < 3) {
 		printk("%s[%d]: %s %ld [%d]\n",


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-02  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-02  6:26 [patch 2.6.13-rc1] Make ia64 die() preempt safe Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox