xref: /openbmc/linux/arch/powerpc/include/asm/nmi.h (revision 6562c9ac)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_NMI_H
3 #define _ASM_NMI_H
4 
5 #ifdef CONFIG_PPC_WATCHDOG
6 extern void arch_touch_nmi_watchdog(void);
7 long soft_nmi_interrupt(struct pt_regs *regs);
8 void watchdog_nmi_set_timeout_pct(u64 pct);
9 #else
10 static inline void arch_touch_nmi_watchdog(void) {}
11 static inline void watchdog_nmi_set_timeout_pct(u64 pct) {}
12 #endif
13 
14 #ifdef CONFIG_NMI_IPI
15 extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
16 					   bool exclude_self);
17 #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
18 #endif
19 
20 extern void hv_nmi_check_nonrecoverable(struct pt_regs *regs);
21 
22 #endif /* _ASM_NMI_H */
23