powerpc: Fix graceful debugger recovery
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Nov 2016 12:14:44 +0000 (23:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Nov 2016 11:40:42 +0000 (22:40 +1100)
commit6f44b20ee9b4130345c189c0c90ef6604bcd8005
treece6427611a8af1e7c99f297933c7d09b18140bac
parent43c9127d94d62a232ed33ed2eab8a08657ce5472
powerpc: Fix graceful debugger recovery

When exiting xmon with 'x' (exit and recover), oops_begin bails
out immediately, but die then calls __die() and oops_end(), which
cause a lot of bad things to happen.

If the debugger was attached then went to graceful recovery, exit
from die() immediately.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c