[POWERPC] Add missing oops_enter/oops_exit
authoranton@samba.org <anton@samba.org>
Wed, 21 Mar 2007 01:38:11 +0000 (20:38 -0500)
committerPaul Mackerras <paulus@samba.org>
Mon, 26 Mar 2007 02:34:27 +0000 (12:34 +1000)
Add missing oops_enter/oops_exit, makes pause_on_oops boot parameter work.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/traps.c

index 17724fb2067f4a2195f4e30548b62362f2c0bfd4..23f43b44bba694a3b684ba3cb959120bf6b6185d 100644 (file)
@@ -99,6 +99,8 @@ int die(const char *str, struct pt_regs *regs, long err)
        if (debugger(regs))
                return 1;
 
+       oops_enter();
+
        console_verbose();
        spin_lock_irq(&die_lock);
        bust_spinlocks(1);
@@ -145,6 +147,7 @@ int die(const char *str, struct pt_regs *regs, long err)
        if (panic_on_oops)
                panic("Fatal exception");
 
+       oops_exit();
        do_exit(err);
 
        return 0;