aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-07 05:15:40 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 05:15:40 -0400
commit5e34437840d33554f69380584311743b39e8fbeb (patch)
treee081135619ee146af5efb9ee883afca950df5757 /kernel/sysctl.c
parent77d05632baee21b1cef8730d7c06aa69601e4dca (diff)
parentd508afb437daee7cf07da085b635c44a4ebf9b38 (diff)
Merge branch 'linus' into core/softlockup
Conflicts: kernel/sysctl.c
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 6d2aeff92b3d..b1a1b968f745 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -48,6 +48,7 @@
48#include <linux/acpi.h> 48#include <linux/acpi.h>
49#include <linux/reboot.h> 49#include <linux/reboot.h>
50#include <linux/ftrace.h> 50#include <linux/ftrace.h>
51#include <linux/slow-work.h>
51 52
52#include <asm/uaccess.h> 53#include <asm/uaccess.h>
53#include <asm/processor.h> 54#include <asm/processor.h>
@@ -90,19 +91,14 @@ extern int rcutorture_runnable;
90#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ 91#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
91 92
92/* Constants used for minimum and maximum */ 93/* Constants used for minimum and maximum */
93#if defined(CONFIG_DETECT_HUNG_TASK) || defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM)
94static int one = 1;
95#endif
96#ifdef CONFIG_DETECT_SOFTLOCKUP 94#ifdef CONFIG_DETECT_SOFTLOCKUP
97static int sixty = 60; 95static int sixty = 60;
98static int neg_one = -1; 96static int neg_one = -1;
99#endif 97#endif
100 98
101#if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING)
102static int two = 2;
103#endif
104
105static int zero; 99static int zero;
100static int __maybe_unused one = 1;
101static int __maybe_unused two = 2;
106static unsigned long one_ul = 1; 102static unsigned long one_ul = 1;
107static int one_hundred = 100; 103static int one_hundred = 100;
108 104
@@ -915,6 +911,14 @@ static struct ctl_table kern_table[] = {
915 .proc_handler = &scan_unevictable_handler, 911 .proc_handler = &scan_unevictable_handler,
916 }, 912 },
917#endif 913#endif
914#ifdef CONFIG_SLOW_WORK
915 {
916 .ctl_name = CTL_UNNUMBERED,
917 .procname = "slow-work",
918 .mode = 0555,
919 .child = slow_work_sysctls,
920 },
921#endif
918/* 922/*
919 * NOTE: do not add new entries to this table unless you have read 923 * NOTE: do not add new entries to this table unless you have read
920 * Documentation/sysctl/ctl_unnumbered.txt 924 * Documentation/sysctl/ctl_unnumbered.txt
@@ -1025,7 +1029,7 @@ static struct ctl_table vm_table[] = {
1025 .data = &dirty_expire_interval, 1029 .data = &dirty_expire_interval,
1026 .maxlen = sizeof(dirty_expire_interval), 1030 .maxlen = sizeof(dirty_expire_interval),
1027 .mode = 0644, 1031 .mode = 0644,
1028 .proc_handler = &proc_dointvec_userhz_jiffies, 1032 .proc_handler = &proc_dointvec,
1029 }, 1033 },
1030 { 1034 {
1031 .ctl_name = VM_NR_PDFLUSH_THREADS, 1035 .ctl_name = VM_NR_PDFLUSH_THREADS,
@@ -1388,10 +1392,7 @@ static struct ctl_table fs_table[] = {
1388 .data = &lease_break_time, 1392 .data = &lease_break_time,
1389 .maxlen = sizeof(int), 1393 .maxlen = sizeof(int),
1390 .mode = 0644, 1394 .mode = 0644,
1391 .proc_handler = &proc_dointvec_minmax, 1395 .proc_handler = &proc_dointvec,
1392 .strategy = &sysctl_intvec,
1393 .extra1 = &zero,
1394 .extra2 = &two,
1395 }, 1396 },
1396#endif 1397#endif
1397#ifdef CONFIG_AIO 1398#ifdef CONFIG_AIO
@@ -1432,7 +1433,10 @@ static struct ctl_table fs_table[] = {
1432 .data = &suid_dumpable, 1433 .data = &suid_dumpable,
1433 .maxlen = sizeof(int), 1434 .maxlen = sizeof(int),
1434 .mode = 0644, 1435 .mode = 0644,
1435 .proc_handler = &proc_dointvec, 1436 .proc_handler = &proc_dointvec_minmax,
1437 .strategy = &sysctl_intvec,
1438 .extra1 = &zero,
1439 .extra2 = &two,
1436 }, 1440 },
1437#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) 1441#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE)
1438 { 1442 {