History

x86, NMI: Add back unknown_nmi_panic and nmi_watchdog sysctls

Originally adapted from Huang Ying's patch which moved the unknown_nmi_panic to the traps.c file. Because the old nmi watchdog was deleted before this change happened, the unknown_nmi_panic sysctl was lost. This re-adds it. Also, the nmi_watchdog sysctl was re-implemented and its documentation updated accordingly.

Don Zickus committed 15 years ago

Commit 5dc30551 parent 96a84c26 files · +30 −18Browse files

Showing the changes to kernel/sysctl_binary.c (1 of 6 files). Show all

Unified · Split

kernel/sysctl_binary.c+0−1
@@ -136,7 +136,6 @@ static const struct bin_table bin_kern_table[] = { · 135 unmodified lines
136 { CTL_INT, KERN_IA64_UNALIGNED, "ignore-unaligned-usertrap" },136 { CTL_INT, KERN_IA64_UNALIGNED, "ignore-unaligned-usertrap" },
137 { CTL_INT, KERN_COMPAT_LOG, "compat-log" },137 { CTL_INT, KERN_COMPAT_LOG, "compat-log" },
138 { CTL_INT, KERN_MAX_LOCK_DEPTH, "max_lock_depth" },138 { CTL_INT, KERN_MAX_LOCK_DEPTH, "max_lock_depth" },
139 { CTL_INT, KERN_NMI_WATCHDOG, "nmi_watchdog" },
140 { CTL_INT, KERN_PANIC_ON_NMI, "panic_on_unrecovered_nmi" },139 { CTL_INT, KERN_PANIC_ON_NMI, "panic_on_unrecovered_nmi" },
141 {}140 {}
142};141};