powerpc/64s: allow machine check handler to set severity and initiator
authorNicholas Piggin <npiggin@gmail.com>
Tue, 28 Feb 2017 02:00:47 +0000 (12:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Mar 2017 05:32:07 +0000 (16:32 +1100)
commitc1bbf387d6191e6e18f3adc4db45b922822c2ba4
tree701f4206a2c1b082dd31d7ce32ecb92643621de8
parent1363875bdb6317a2d0798284d7aaf320f0782f6d
powerpc/64s: allow machine check handler to set severity and initiator

Currently severity and initiator are always set to MCE_SEV_ERROR_SYNC and
MCE_INITIATOR_CPU in the core mce code. Allow them to be set by the
machine specific mce handlers.

No functional change for existing handlers.

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