diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c5ef44ff850f..82350f8f04f6 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> |
| @@ -95,12 +96,9 @@ static int sixty = 60; | |||
| 95 | static int neg_one = -1; | 96 | static int neg_one = -1; |
| 96 | #endif | 97 | #endif |
| 97 | 98 | ||
| 98 | #if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING) | ||
| 99 | static int two = 2; | ||
| 100 | #endif | ||
| 101 | |||
| 102 | static int zero; | 99 | static int zero; |
| 103 | static int one = 1; | 100 | static int one = 1; |
| 101 | static int two = 2; | ||
| 104 | static unsigned long one_ul = 1; | 102 | static unsigned long one_ul = 1; |
| 105 | static int one_hundred = 100; | 103 | static int one_hundred = 100; |
| 106 | 104 | ||
| @@ -900,6 +898,14 @@ static struct ctl_table kern_table[] = { | |||
| 900 | .proc_handler = &scan_unevictable_handler, | 898 | .proc_handler = &scan_unevictable_handler, |
| 901 | }, | 899 | }, |
| 902 | #endif | 900 | #endif |
| 901 | #ifdef CONFIG_SLOW_WORK | ||
| 902 | { | ||
| 903 | .ctl_name = CTL_UNNUMBERED, | ||
| 904 | .procname = "slow-work", | ||
| 905 | .mode = 0555, | ||
| 906 | .child = slow_work_sysctls, | ||
| 907 | }, | ||
| 908 | #endif | ||
| 903 | /* | 909 | /* |
| 904 | * NOTE: do not add new entries to this table unless you have read | 910 | * NOTE: do not add new entries to this table unless you have read |
| 905 | * Documentation/sysctl/ctl_unnumbered.txt | 911 | * Documentation/sysctl/ctl_unnumbered.txt |
| @@ -1010,7 +1016,7 @@ static struct ctl_table vm_table[] = { | |||
| 1010 | .data = &dirty_expire_interval, | 1016 | .data = &dirty_expire_interval, |
| 1011 | .maxlen = sizeof(dirty_expire_interval), | 1017 | .maxlen = sizeof(dirty_expire_interval), |
| 1012 | .mode = 0644, | 1018 | .mode = 0644, |
| 1013 | .proc_handler = &proc_dointvec_userhz_jiffies, | 1019 | .proc_handler = &proc_dointvec, |
| 1014 | }, | 1020 | }, |
| 1015 | { | 1021 | { |
| 1016 | .ctl_name = VM_NR_PDFLUSH_THREADS, | 1022 | .ctl_name = VM_NR_PDFLUSH_THREADS, |
| @@ -1373,10 +1379,7 @@ static struct ctl_table fs_table[] = { | |||
| 1373 | .data = &lease_break_time, | 1379 | .data = &lease_break_time, |
| 1374 | .maxlen = sizeof(int), | 1380 | .maxlen = sizeof(int), |
| 1375 | .mode = 0644, | 1381 | .mode = 0644, |
| 1376 | .proc_handler = &proc_dointvec_minmax, | 1382 | .proc_handler = &proc_dointvec, |
| 1377 | .strategy = &sysctl_intvec, | ||
| 1378 | .extra1 = &zero, | ||
| 1379 | .extra2 = &two, | ||
| 1380 | }, | 1383 | }, |
| 1381 | #endif | 1384 | #endif |
| 1382 | #ifdef CONFIG_AIO | 1385 | #ifdef CONFIG_AIO |
| @@ -1417,7 +1420,10 @@ static struct ctl_table fs_table[] = { | |||
| 1417 | .data = &suid_dumpable, | 1420 | .data = &suid_dumpable, |
| 1418 | .maxlen = sizeof(int), | 1421 | .maxlen = sizeof(int), |
| 1419 | .mode = 0644, | 1422 | .mode = 0644, |
| 1420 | .proc_handler = &proc_dointvec, | 1423 | .proc_handler = &proc_dointvec_minmax, |
| 1424 | .strategy = &sysctl_intvec, | ||
| 1425 | .extra1 = &zero, | ||
| 1426 | .extra2 = &two, | ||
| 1421 | }, | 1427 | }, |
| 1422 | #if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) | 1428 | #if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) |
| 1423 | { | 1429 | { |
