|
@@ -406,6 +406,7 @@ static notrace __kprobes void default_do_nmi(struct pt_regs *regs)
|
|
|
== NOTIFY_STOP)
|
|
|
return;
|
|
|
|
|
|
+#ifndef CONFIG_NMI_WATCHDOG
|
|
|
/*
|
|
|
* Ok, so this is none of the documented NMI sources,
|
|
|
* so it must be the NMI watchdog.
|
|
@@ -413,6 +414,7 @@ static notrace __kprobes void default_do_nmi(struct pt_regs *regs)
|
|
|
if (nmi_watchdog_tick(regs, reason))
|
|
|
return;
|
|
|
if (!do_nmi_callback(regs, cpu))
|
|
|
+#endif /* !CONFIG_NMI_WATCHDOG */
|
|
|
unknown_nmi_error(reason, regs);
|
|
|
#else
|
|
|
unknown_nmi_error(reason, regs);
|