summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/firmware.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2020-05-08 06:33:57 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-18 13:58:45 +0200
commit7368b38b21bfa39df637701a480262c15ab1a49e (patch)
treeb4f2b99049d5a6e08105765a20b40001a6ec376c /arch/powerpc/include/asm/firmware.h
parentpowerpc/64s/exceptions: Machine check reconcile irq state (diff)
downloadlinux-7368b38b21bfa39df637701a480262c15ab1a49e.tar.xz
linux-7368b38b21bfa39df637701a480262c15ab1a49e.zip
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
Diffstat (limited to 'arch/powerpc/include/asm/firmware.h')
-rw-r--r--arch/powerpc/include/asm/firmware.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/include/asm/firmware.h
index ca33f4ef6cb4..6003c2e533a0 100644
--- a/arch/powerpc/include/asm/firmware.h
+++ b/arch/powerpc/include/asm/firmware.h
@@ -128,6 +128,7 @@ extern void machine_check_fwnmi(void);
/* This is true if we are using the firmware NMI handler (typically LPAR) */
extern int fwnmi_active;
+extern int ibm_nmi_interlock_token;
extern unsigned int __start___fw_ftr_fixup, __stop___fw_ftr_fixup;