powerpc/64s/exception: simplify machine check early path
authorNicholas Piggin <npiggin@gmail.com>
Fri, 2 Aug 2019 10:56:38 +0000 (20:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Aug 2019 00:32:35 +0000 (10:32 +1000)
commit296e753fb447eb14c8c9fd6a7c48e7ffab269343
treef14ea47a6152d51a8afc6ff06bcac38a47f07625
parentabd1f4ca2b41ffba768c3baadc006a95d178fbf1
powerpc/64s/exception: simplify machine check early path

machine_check_handle_early_common can reach machine_check_handle_early
directly now that it runs at the relocated address, so just branch
directly.

The rfi sequence is required to enable MSR[ME] but that step is moved
into a helper function, making the code easier to follow.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190802105709.27696-14-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S