]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kdump: Use setjmp/longjmp to handle kdump and system reset recursion
authorAnton Blanchard <anton@samba.org>
Wed, 30 Nov 2011 00:23:11 +0000 (00:23 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Dec 2011 03:02:22 +0000 (14:02 +1100)
commit1bc242c6bb54d23cfde3edf6cafc1711b2ab451e
tree306f3fe8cc1994994a0d581c5d5b3d6d612d0def
parent43c2076fbbe9a3acd117db4dc4cafa887bc2e055
powerpc/kdump: Use setjmp/longjmp to handle kdump and system reset recursion

We can handle recursion caused by system reset by reusing the crash
shutdown fault handler.

Since we don't have an OS triggerable NMI, if all CPUs don't make it
into kdump then we tell the user to issue a system reset. However if
we have a panic timeout set we cannot wait forever and must continue
the kdump.

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