diff options
author | NeilBrown <neilb@suse.de> | 2010-08-09 20:02:33 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-09 20:02:33 -0400 |
commit | fd8aa2c1811bf60ccb2d5de0579c6f62aec1772d (patch) | |
tree | 311567d03758afc3a93b4273fe172836e89bb01d /kernel/sysctl.c | |
parent | 6e17b0276452912cb13445e5ea552b599984675f (diff) | |
parent | 2144381da478cc4aa3a29ee29b0c5e6ddaaced14 (diff) |
Merge git://git.infradead.org/users/dwmw2/libraid-2.6 into for-linus
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index d24f761f4876..6d850bf0a517 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <linux/acpi.h> | 50 | #include <linux/acpi.h> |
51 | #include <linux/reboot.h> | 51 | #include <linux/reboot.h> |
52 | #include <linux/ftrace.h> | 52 | #include <linux/ftrace.h> |
53 | #include <linux/slow-work.h> | ||
54 | #include <linux/perf_event.h> | 53 | #include <linux/perf_event.h> |
55 | #include <linux/kprobes.h> | 54 | #include <linux/kprobes.h> |
56 | #include <linux/pipe_fs_i.h> | 55 | #include <linux/pipe_fs_i.h> |
@@ -76,6 +75,10 @@ | |||
76 | #include <scsi/sg.h> | 75 | #include <scsi/sg.h> |
77 | #endif | 76 | #endif |
78 | 77 | ||
78 | #ifdef CONFIG_LOCKUP_DETECTOR | ||
79 | #include <linux/nmi.h> | ||
80 | #endif | ||
81 | |||
79 | 82 | ||
80 | #if defined(CONFIG_SYSCTL) | 83 | #if defined(CONFIG_SYSCTL) |
81 | 84 | ||
@@ -106,7 +109,7 @@ extern int blk_iopoll_enabled; | |||
106 | #endif | 109 | #endif |
107 | 110 | ||
108 | /* Constants used for minimum and maximum */ | 111 | /* Constants used for minimum and maximum */ |
109 | #ifdef CONFIG_DETECT_SOFTLOCKUP | 112 | #ifdef CONFIG_LOCKUP_DETECTOR |
110 | static int sixty = 60; | 113 | static int sixty = 60; |
111 | static int neg_one = -1; | 114 | static int neg_one = -1; |
112 | #endif | 115 | #endif |
@@ -562,7 +565,7 @@ static struct ctl_table kern_table[] = { | |||
562 | .extra2 = &one, | 565 | .extra2 = &one, |
563 | }, | 566 | }, |
564 | #endif | 567 | #endif |
565 | #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) | 568 | #ifdef CONFIG_HOTPLUG |
566 | { | 569 | { |
567 | .procname = "hotplug", | 570 | .procname = "hotplug", |
568 | .data = &uevent_helper, | 571 | .data = &uevent_helper, |
@@ -710,7 +713,34 @@ static struct ctl_table kern_table[] = { | |||
710 | .mode = 0444, | 713 | .mode = 0444, |
711 | .proc_handler = proc_dointvec, | 714 | .proc_handler = proc_dointvec, |
712 | }, | 715 | }, |
713 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) | 716 | #if defined(CONFIG_LOCKUP_DETECTOR) |
717 | { | ||
718 | .procname = "watchdog", | ||
719 | .data = &watchdog_enabled, | ||
720 | .maxlen = sizeof (int), | ||
721 | .mode = 0644, | ||
722 | .proc_handler = proc_dowatchdog_enabled, | ||
723 | }, | ||
724 | { | ||
725 | .procname = "watchdog_thresh", | ||
726 | .data = &softlockup_thresh, | ||
727 | .maxlen = sizeof(int), | ||
728 | .mode = 0644, | ||
729 | .proc_handler = proc_dowatchdog_thresh, | ||
730 | .extra1 = &neg_one, | ||
731 | .extra2 = &sixty, | ||
732 | }, | ||
733 | { | ||
734 | .procname = "softlockup_panic", | ||
735 | .data = &softlockup_panic, | ||
736 | .maxlen = sizeof(int), | ||
737 | .mode = 0644, | ||
738 | .proc_handler = proc_dointvec_minmax, | ||
739 | .extra1 = &zero, | ||
740 | .extra2 = &one, | ||
741 | }, | ||
742 | #endif | ||
743 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) && !defined(CONFIG_LOCKUP_DETECTOR) | ||
714 | { | 744 | { |
715 | .procname = "unknown_nmi_panic", | 745 | .procname = "unknown_nmi_panic", |
716 | .data = &unknown_nmi_panic, | 746 | .data = &unknown_nmi_panic, |
@@ -813,26 +843,6 @@ static struct ctl_table kern_table[] = { | |||
813 | .proc_handler = proc_dointvec, | 843 | .proc_handler = proc_dointvec, |
814 | }, | 844 | }, |
815 | #endif | 845 | #endif |
816 | #ifdef CONFIG_DETECT_SOFTLOCKUP | ||
817 | { | ||
818 | .procname = "softlockup_panic", | ||
819 | .data = &softlockup_panic, | ||
820 | .maxlen = sizeof(int), | ||
821 | .mode = 0644, | ||
822 | .proc_handler = proc_dointvec_minmax, | ||
823 | .extra1 = &zero, | ||
824 | .extra2 = &one, | ||
825 | }, | ||
826 | { | ||
827 | .procname = "softlockup_thresh", | ||
828 | .data = &softlockup_thresh, | ||
829 | .maxlen = sizeof(int), | ||
830 | .mode = 0644, | ||
831 | .proc_handler = proc_dosoftlockup_thresh, | ||
832 | .extra1 = &neg_one, | ||
833 | .extra2 = &sixty, | ||
834 | }, | ||
835 | #endif | ||
836 | #ifdef CONFIG_DETECT_HUNG_TASK | 846 | #ifdef CONFIG_DETECT_HUNG_TASK |
837 | { | 847 | { |
838 | .procname = "hung_task_panic", | 848 | .procname = "hung_task_panic", |
@@ -906,13 +916,6 @@ static struct ctl_table kern_table[] = { | |||
906 | .proc_handler = proc_dointvec, | 916 | .proc_handler = proc_dointvec, |
907 | }, | 917 | }, |
908 | #endif | 918 | #endif |
909 | #ifdef CONFIG_SLOW_WORK | ||
910 | { | ||
911 | .procname = "slow-work", | ||
912 | .mode = 0555, | ||
913 | .child = slow_work_sysctls, | ||
914 | }, | ||
915 | #endif | ||
916 | #ifdef CONFIG_PERF_EVENTS | 919 | #ifdef CONFIG_PERF_EVENTS |
917 | { | 920 | { |
918 | .procname = "perf_event_paranoid", | 921 | .procname = "perf_event_paranoid", |