ARM: 7424/1: update die handler from x86
authorRabin Vincent <rabin.vincent@stericsson.com>
Fri, 15 Jun 2012 09:23:32 +0000 (10:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Jul 2012 16:39:37 +0000 (17:39 +0100)
commit02df19b4227e5b799e4642e88b568f9474fa78d0
treeb83b03c19a4a0908aec006be85feb0cf2df8baa8
parentffae894035a1e0c46869eb81d53ea88ca4eaf2f0
ARM: 7424/1: update die handler from x86

Robustify ARM's die() handling with improvements from x86:

 - Fix for a deadlock (before panic in the case of panic_on_oops) if we
   oops under a spinlock which is also used from interrupt handler,
   since the old code was unconditionally enabling interrupts.

 - Usage of arch spinlock so lockdep etc doesn't get involved while
   we're trying to dump out oopses.

 - Deadlock prevention in the unlikely event that die() recurses.

The changes all touch the same few lines of code, so they're done
together in one patch.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c