[IA64] support panic_on_oops sysctl

Trivial port of this feature from i386
As it stands, panic_on_oops but does nothing on ia64

Signed-Off-By: Horms <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Horms and committed by Tony Luck b05de01a defbb2c9

+8
+8
arch/ia64/kernel/traps.c
··· 16 16 #include <linux/module.h> /* for EXPORT_SYMBOL */ 17 17 #include <linux/hardirq.h> 18 18 #include <linux/kprobes.h> 19 + #include <linux/delay.h> /* for ssleep() */ 19 20 20 21 #include <asm/fpswa.h> 21 22 #include <asm/ia32.h> ··· 117 116 bust_spinlocks(0); 118 117 die.lock_owner = -1; 119 118 spin_unlock_irq(&die.lock); 119 + 120 + if (panic_on_oops) { 121 + printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); 122 + ssleep(5); 123 + panic("Fatal exception"); 124 + } 125 + 120 126 do_exit(SIGSEGV); 121 127 } 122 128