blob: 84b4cfe73edddec59abd875d6e807dce7c251a2e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Anton Blanchardc54b2bf2015-04-09 12:52:56 +10002#ifndef _ASM_NMI_H
3#define _ASM_NMI_H
4
Nicholas Piggin70412c52017-08-28 14:27:19 +10005#ifdef CONFIG_PPC_WATCHDOG
Nicholas Piggin21041802017-07-12 14:35:52 -07006extern void arch_touch_nmi_watchdog(void);
Nicholas Piggin21041802017-07-12 14:35:52 -07007#else
8static inline void arch_touch_nmi_watchdog(void) {}
9#endif
10
Michael Ellermane08ecba2018-06-19 21:51:55 +100011#if defined(CONFIG_NMI_IPI) && defined(CONFIG_STACKTRACE)
Michael Ellerman5cc05912018-05-02 23:07:28 +100012extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
13 bool exclude_self);
14#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
15#endif
16
Nicholas Pigginccd47702019-02-26 18:51:07 +100017extern void hv_nmi_check_nonrecoverable(struct pt_regs *regs);
18
Anton Blanchardc54b2bf2015-04-09 12:52:56 +100019#endif /* _ASM_NMI_H */