21 lines
564 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_NMI_H
#define _ASM_NMI_H
#ifdef CONFIG_PPC_WATCHDOG
2026-01-29 22:25:33 +08:00
long soft_nmi_interrupt(struct pt_regs *regs);
void watchdog_hardlockup_set_timeout_pct(u64 pct);
2026-01-21 18:59:54 +08:00
#else
2026-01-29 22:25:33 +08:00
static inline void watchdog_hardlockup_set_timeout_pct(u64 pct) {}
2026-01-21 18:59:54 +08:00
#endif
2026-01-29 22:25:33 +08:00
#ifdef CONFIG_NMI_IPI
2026-01-21 18:59:54 +08:00
extern bool arch_trigger_cpumask_backtrace(const cpumask_t *mask,
2026-01-29 22:25:33 +08:00
int exclude_cpu);
2026-01-21 18:59:54 +08:00
#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
#endif
extern void hv_nmi_check_nonrecoverable(struct pt_regs *regs);
#endif /* _ASM_NMI_H */