powerpc: improve handling of unrecoverable system reset
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:35 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:11 +0000 (00:02 +1100)
commit11cb0a25f71818ca7ab4856548ecfd83c169aa4d
tree1cf0e322394fc3f94d348a52d0f79d6697f477ef
parentc538938fa2cfdc806c6304888e3876729e6939e0
powerpc: improve handling of unrecoverable system reset

If an unrecoverable system reset hits in process context, the system
does not have to panic. Similar to machine check, call nmi_exit()
before die().

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-26-npiggin@gmail.com
arch/powerpc/kernel/traps.c