epoll: wire up syscall epoll_pwait2
[linux-2.6-microblaze.git] / kernel / panic.c
index aef8872..332736a 100644 (file)
@@ -589,6 +589,11 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
        if (args)
                vprintk(args->fmt, args->args);
 
+       print_modules();
+
+       if (regs)
+               show_regs(regs);
+
        if (panic_on_warn) {
                /*
                 * This thread may hit another WARN() in the panic path.
@@ -600,11 +605,7 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
                panic("panic_on_warn set ...\n");
        }
 
-       print_modules();
-
-       if (regs)
-               show_regs(regs);
-       else
+       if (!regs)
                dump_stack();
 
        print_irqtrace_events(current);