powerpc/64s: Clean up machine check recovery flushing
authorNicholas Piggin <npiggin@gmail.com>
Tue, 14 Mar 2017 12:36:44 +0000 (22:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Mar 2017 11:09:29 +0000 (22:09 +1100)
commit88c6511a8c0c09bbc5f9792c4a2c252c7e47e49b
tree709998a1356f68289a8b2b5522faef859412d051
parentfc84427b7e1471b0a1220c56072f574618335edc
powerpc/64s: Clean up machine check recovery flushing

Use the flush function introduced with the POWER9 machine check handler
for POWER7 and 8, rather than open coding it multiple times in callers.

There is a specific ERAT flush type introduced for POWER9, but the
POWER7-8 ERAT errors continue to do SLB flushing (which also flushes
ERAT), so as not to introduce functional changes with this cleanup
patch.

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