powerpc/pseries/ras: Avoid calling rtas_token() in NMI paths
authorNicholas Piggin <npiggin@gmail.com>
Fri, 8 May 2020 04:33:57 +0000 (14:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 11:58:45 +0000 (21:58 +1000)
commit7368b38b21bfa39df637701a480262c15ab1a49e
treeb4f2b99049d5a6e08105765a20b40001a6ec376c
parentf0fd9dd3c213c947dfb5bc2cad3ef5e30d3258ec
powerpc/pseries/ras: Avoid calling rtas_token() in NMI paths

In the interest of reducing code and possible failures in the
machine check and system reset paths, grab the "ibm,nmi-interlock"
token at init time.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Link: https://lore.kernel.org/r/20200508043408.886394-6-npiggin@gmail.com
arch/powerpc/include/asm/firmware.h
arch/powerpc/platforms/pseries/ras.c
arch/powerpc/platforms/pseries/setup.c