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
This commit is contained in:

committed by
Michael Ellerman

parent
f0fd9dd3c2
commit
7368b38b21
@@ -458,7 +458,7 @@ static struct rtas_error_log *fwnmi_get_errinfo(struct pt_regs *regs)
|
||||
*/
|
||||
static void fwnmi_release_errinfo(void)
|
||||
{
|
||||
int ret = rtas_call(rtas_token("ibm,nmi-interlock"), 0, 1, NULL);
|
||||
int ret = rtas_call(ibm_nmi_interlock_token, 0, 1, NULL);
|
||||
if (ret != 0)
|
||||
printk(KERN_ERR "FWNMI: nmi-interlock failed: %d\n", ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user