powerpc/mce: Remove per cpu variables from MCE handlers
authorGanesh Goudar <ganeshgr@linux.ibm.com>
Thu, 28 Jan 2021 10:41:43 +0000 (16:11 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 31 Jan 2021 11:35:49 +0000 (22:35 +1100)
commit923b3cf00b3ffc896543bac99affc0fa8553e41a
tree8009a5aa8c1b6a6c16675c68f6d8cc62daee62ba
parent17c5cf0fb993e219bda4f53aa9ec90d3cfcf92ab
powerpc/mce: Remove per cpu variables from MCE handlers

Access to per-cpu variables requires translation to be enabled on
pseries machine running in hash mmu mode, Since part of MCE handler
runs in realmode and part of MCE handling code is shared between ppc
architectures pseries and powernv, it becomes difficult to manage
these variables differently on different architectures, So have
these variables in paca instead of having them as per-cpu variables
to avoid complications.

Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210128104143.70668-2-ganeshgr@linux.ibm.com
arch/powerpc/include/asm/mce.h
arch/powerpc/include/asm/paca.h
arch/powerpc/kernel/mce.c
arch/powerpc/kernel/setup-common.c