]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Give us time to get all oopses out before panicking
authorAnton Blanchard <anton@samba.org>
Wed, 30 Nov 2011 00:23:09 +0000 (00:23 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Dec 2011 03:02:22 +0000 (14:02 +1100)
commit247875ec9fca7c77d7a431a4186589d0b6a8eea2
tree42833866181659098501fd9ecce6cd1e333bd434
parentf8bedac2d7d4c6dae165d64ee9a33046ba3e3e6c
powerpc: Give us time to get all oopses out before panicking

I've been seeing truncated output when people send system reset info
to me. We should see a backtrace for every CPU, but the panic() code
takes the box down before they all make it out to the console. The
panic code runs unlocked so we also see corrupted console output.

If we are going to panic, then delay 1 second before calling into the
panic code. Move oops_exit inside the die lock and put a newline
between oopses for clarity.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c