aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 0d562d6531eb..3e56d2f91414 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -85,12 +85,13 @@ extern int latencytop_enabled;
85extern int sysctl_nr_open_min, sysctl_nr_open_max; 85extern int sysctl_nr_open_min, sysctl_nr_open_max;
86 86
87/* Constants used for minimum and maximum */ 87/* Constants used for minimum and maximum */
88#if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM) 88#if defined(CONFIG_HIGHMEM) || defined(CONFIG_DETECT_SOFTLOCKUP)
89static int one = 1; 89static int one = 1;
90#endif 90#endif
91 91
92#ifdef CONFIG_DETECT_SOFTLOCKUP 92#ifdef CONFIG_DETECT_SOFTLOCKUP
93static int sixty = 60; 93static int sixty = 60;
94static int neg_one = -1;
94#endif 95#endif
95 96
96#ifdef CONFIG_MMU 97#ifdef CONFIG_MMU
@@ -736,13 +737,24 @@ static struct ctl_table kern_table[] = {
736#ifdef CONFIG_DETECT_SOFTLOCKUP 737#ifdef CONFIG_DETECT_SOFTLOCKUP
737 { 738 {
738 .ctl_name = CTL_UNNUMBERED, 739 .ctl_name = CTL_UNNUMBERED,
740 .procname = "softlockup_panic",
741 .data = &softlockup_panic,
742 .maxlen = sizeof(int),
743 .mode = 0644,
744 .proc_handler = &proc_doulongvec_minmax,
745 .strategy = &sysctl_intvec,
746 .extra1 = &zero,
747 .extra2 = &one,
748 },
749 {
750 .ctl_name = CTL_UNNUMBERED,
739 .procname = "softlockup_thresh", 751 .procname = "softlockup_thresh",
740 .data = &softlockup_thresh, 752 .data = &softlockup_thresh,
741 .maxlen = sizeof(unsigned long), 753 .maxlen = sizeof(int),
742 .mode = 0644, 754 .mode = 0644,
743 .proc_handler = &proc_doulongvec_minmax, 755 .proc_handler = &proc_dointvec_minmax,
744 .strategy = &sysctl_intvec, 756 .strategy = &sysctl_intvec,
745 .extra1 = &one, 757 .extra1 = &neg_one,
746 .extra2 = &sixty, 758 .extra2 = &sixty,
747 }, 759 },
748 { 760 {