diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index a38af430f0d8..0f9adda85f97 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -74,7 +74,7 @@ | |||
74 | #include <scsi/sg.h> | 74 | #include <scsi/sg.h> |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #ifdef CONFIG_NMI_WATCHDOG | 77 | #ifdef CONFIG_LOCKUP_DETECTOR |
78 | #include <linux/nmi.h> | 78 | #include <linux/nmi.h> |
79 | #endif | 79 | #endif |
80 | 80 | ||
@@ -686,16 +686,25 @@ static struct ctl_table kern_table[] = { | |||
686 | .mode = 0444, | 686 | .mode = 0444, |
687 | .proc_handler = proc_dointvec, | 687 | .proc_handler = proc_dointvec, |
688 | }, | 688 | }, |
689 | #if defined(CONFIG_NMI_WATCHDOG) | 689 | #if defined(CONFIG_LOCKUP_DETECTOR) |
690 | { | 690 | { |
691 | .procname = "nmi_watchdog", | 691 | .procname = "watchdog", |
692 | .data = &nmi_watchdog_enabled, | 692 | .data = &watchdog_enabled, |
693 | .maxlen = sizeof (int), | 693 | .maxlen = sizeof (int), |
694 | .mode = 0644, | 694 | .mode = 0644, |
695 | .proc_handler = proc_nmi_enabled, | 695 | .proc_handler = proc_dowatchdog_enabled, |
696 | }, | ||
697 | { | ||
698 | .procname = "watchdog_thresh", | ||
699 | .data = &softlockup_thresh, | ||
700 | .maxlen = sizeof(int), | ||
701 | .mode = 0644, | ||
702 | .proc_handler = proc_dowatchdog_thresh, | ||
703 | .extra1 = &neg_one, | ||
704 | .extra2 = &sixty, | ||
696 | }, | 705 | }, |
697 | #endif | 706 | #endif |
698 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) && !defined(CONFIG_NMI_WATCHDOG) | 707 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) && !defined(CONFIG_LOCKUP_DETECTOR) |
699 | { | 708 | { |
700 | .procname = "unknown_nmi_panic", | 709 | .procname = "unknown_nmi_panic", |
701 | .data = &unknown_nmi_panic, | 710 | .data = &unknown_nmi_panic, |