Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
c54b2bf1 AB |
2 | #ifndef _ASM_NMI_H |
3 | #define _ASM_NMI_H | |
4 | ||
70412c55 | 5 | #ifdef CONFIG_PPC_WATCHDOG |
2104180a | 6 | extern void arch_touch_nmi_watchdog(void); |
3a96570f | 7 | long soft_nmi_interrupt(struct pt_regs *regs); |
df95d308 | 8 | void watchdog_hardlockup_set_timeout_pct(u64 pct); |
2104180a NP |
9 | #else |
10 | static inline void arch_touch_nmi_watchdog(void) {} | |
df95d308 | 11 | static inline void watchdog_hardlockup_set_timeout_pct(u64 pct) {} |
2104180a NP |
12 | #endif |
13 | ||
48015b63 | 14 | #ifdef CONFIG_NMI_IPI |
5cc05910 ME |
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 | ||
ccd47702 NP |
20 | extern void hv_nmi_check_nonrecoverable(struct pt_regs *regs); |
21 | ||
c54b2bf1 | 22 | #endif /* _ASM_NMI_H */ |