Skip to contentSkip to conversation

mips: call oops_enter, oops_exit in die

PATCH In review Nathan Lynch 2 participants 2 messages Sep 30, 2011 – Oct 21, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: call oops_enter, oops_exit in die

This allows pause_on_oops and mtdoops to work.

---
 arch/mips/kernel/traps.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/mips/kernel/traps.c +5 -0
index b7517e3..dc31056 100644
@@ -14,6 +14,7 @@
 #include <linux/bug.h>
 #include <linux/compiler.h>
 #include <linux/init.h>
+#include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/sched.h>
@@ -374,6 +375,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
 	unsigned long dvpret = dvpe();
 #endif /* CONFIG_MIPS_MT_SMTC */
 
+	oops_enter();
+
 	if (notify_die(DIE_OOPS, str, regs, 0, regs_to_trapnr(regs), SIGSEGV) == NOTIFY_STOP)
 		sig = 0;
 
@@ -389,6 +392,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
 	add_taint(TAINT_DIE);
 	spin_unlock_irq(&die_lock);
 
+	oops_exit();
+
 	if (in_interrupt())
 		panic("Fatal exception in interrupt");
 
Signature · 1 line
1.7.6.2
#1 lore raw
Quoted 1 line · Nathan Lynch

This allows pause_on_oops and mtdoops to work.

I've applied this to the master branch when you sent it and now finally also to the -stable branches.

Thanks!

Ralf