powerpc/64s: Fix mce accounting for powernv
authorNicholas Piggin <npiggin@gmail.com>
Tue, 1 Aug 2017 12:00:51 +0000 (22:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:30:00 +0000 (22:30 +1000)
commitf886f0f6e0e20d53dc36421c2ee83fb9277554af
treeef5f8e70c9da4c515441726464ced6aef3354ae2
parent1a367063ca0c1c6f6f54b5abd7b4836b0866a07b
powerpc/64s: Fix mce accounting for powernv

On 64-bit Book3s, when we're in HV mode, we have already counted the
machine check exception in machine_check_early().

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use IS_ENABLED() rather than an #ifdef]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c