powerpc: move NMI entry/exit code into wrapper
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:49 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:10:50 +0000 (00:10 +1100)
commit118178e62e2e0da39b394e812fef7179c8bdb3bc
tree033a3d38b86a4130ed4b2de59bf0d7cf1fc23337
parent74c3354bc1d89d53e8da2dcc6f9f6bfc28b2900f
powerpc: move NMI entry/exit code into wrapper

This moves the common NMI entry and exit code into the interrupt handler
wrappers.

This changes the behaviour of soft-NMI (watchdog) and HMI interrupts, and
also MCE interrupts on 64e, by adding missing parts of the NMI entry to
them.

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-40-npiggin@gmail.com
arch/powerpc/include/asm/interrupt.h
arch/powerpc/kernel/mce.c
arch/powerpc/kernel/traps.c
arch/powerpc/kernel/watchdog.c