diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 42b7fc2860c1..3c0998426b57 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -93,11 +93,9 @@ | |||
| 93 | #include <linux/nmi.h> | 93 | #include <linux/nmi.h> |
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | |||
| 97 | #if defined(CONFIG_SYSCTL) | 96 | #if defined(CONFIG_SYSCTL) |
| 98 | 97 | ||
| 99 | /* External variables not in a header file. */ | 98 | /* External variables not in a header file. */ |
| 100 | extern int max_threads; | ||
| 101 | extern int suid_dumpable; | 99 | extern int suid_dumpable; |
| 102 | #ifdef CONFIG_COREDUMP | 100 | #ifdef CONFIG_COREDUMP |
| 103 | extern int core_uses_pid; | 101 | extern int core_uses_pid; |
| @@ -710,10 +708,10 @@ static struct ctl_table kern_table[] = { | |||
| 710 | #endif | 708 | #endif |
| 711 | { | 709 | { |
| 712 | .procname = "threads-max", | 710 | .procname = "threads-max", |
| 713 | .data = &max_threads, | 711 | .data = NULL, |
| 714 | .maxlen = sizeof(int), | 712 | .maxlen = sizeof(int), |
| 715 | .mode = 0644, | 713 | .mode = 0644, |
| 716 | .proc_handler = proc_dointvec, | 714 | .proc_handler = sysctl_max_threads, |
| 717 | }, | 715 | }, |
| 718 | { | 716 | { |
| 719 | .procname = "random", | 717 | .procname = "random", |
