diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index cb99a42f8b37..c05a2b7125e1 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -44,14 +44,12 @@ | |||
| 44 | #include <linux/limits.h> | 44 | #include <linux/limits.h> |
| 45 | #include <linux/dcache.h> | 45 | #include <linux/dcache.h> |
| 46 | #include <linux/syscalls.h> | 46 | #include <linux/syscalls.h> |
| 47 | #include <linux/nfs_fs.h> | ||
| 48 | #include <linux/acpi.h> | ||
| 47 | 49 | ||
| 48 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
| 49 | #include <asm/processor.h> | 51 | #include <asm/processor.h> |
| 50 | 52 | ||
| 51 | #ifdef CONFIG_ROOT_NFS | ||
| 52 | #include <linux/nfs_fs.h> | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #if defined(CONFIG_SYSCTL) | 53 | #if defined(CONFIG_SYSCTL) |
| 56 | 54 | ||
| 57 | /* External variables not in a header file. */ | 55 | /* External variables not in a header file. */ |
| @@ -126,8 +124,6 @@ extern int sysctl_hz_timer; | |||
| 126 | extern int acct_parm[]; | 124 | extern int acct_parm[]; |
| 127 | #endif | 125 | #endif |
| 128 | 126 | ||
| 129 | int randomize_va_space = 1; | ||
| 130 | |||
| 131 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, | 127 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, |
| 132 | ctl_table *, void **); | 128 | ctl_table *, void **); |
| 133 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, | 129 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, |
| @@ -640,6 +636,7 @@ static ctl_table kern_table[] = { | |||
| 640 | .proc_handler = &proc_dointvec, | 636 | .proc_handler = &proc_dointvec, |
| 641 | }, | 637 | }, |
| 642 | #endif | 638 | #endif |
| 639 | #if defined(CONFIG_MMU) | ||
| 643 | { | 640 | { |
| 644 | .ctl_name = KERN_RANDOMIZE, | 641 | .ctl_name = KERN_RANDOMIZE, |
| 645 | .procname = "randomize_va_space", | 642 | .procname = "randomize_va_space", |
| @@ -648,6 +645,7 @@ static ctl_table kern_table[] = { | |||
| 648 | .mode = 0644, | 645 | .mode = 0644, |
| 649 | .proc_handler = &proc_dointvec, | 646 | .proc_handler = &proc_dointvec, |
| 650 | }, | 647 | }, |
| 648 | #endif | ||
| 651 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) | 649 | #if defined(CONFIG_S390) && defined(CONFIG_SMP) |
| 652 | { | 650 | { |
| 653 | .ctl_name = KERN_SPIN_RETRY, | 651 | .ctl_name = KERN_SPIN_RETRY, |
| @@ -658,6 +656,16 @@ static ctl_table kern_table[] = { | |||
| 658 | .proc_handler = &proc_dointvec, | 656 | .proc_handler = &proc_dointvec, |
| 659 | }, | 657 | }, |
| 660 | #endif | 658 | #endif |
| 659 | #ifdef CONFIG_ACPI_SLEEP | ||
| 660 | { | ||
| 661 | .ctl_name = KERN_ACPI_VIDEO_FLAGS, | ||
| 662 | .procname = "acpi_video_flags", | ||
| 663 | .data = &acpi_video_flags, | ||
| 664 | .maxlen = sizeof (unsigned long), | ||
| 665 | .mode = 0644, | ||
| 666 | .proc_handler = &proc_dointvec, | ||
| 667 | }, | ||
| 668 | #endif | ||
| 661 | { .ctl_name = 0 } | 669 | { .ctl_name = 0 } |
| 662 | }; | 670 | }; |
| 663 | 671 | ||
| @@ -878,7 +886,17 @@ static ctl_table vm_table[] = { | |||
| 878 | .maxlen = sizeof(zone_reclaim_mode), | 886 | .maxlen = sizeof(zone_reclaim_mode), |
| 879 | .mode = 0644, | 887 | .mode = 0644, |
| 880 | .proc_handler = &proc_dointvec, | 888 | .proc_handler = &proc_dointvec, |
| 881 | .strategy = &zero, | 889 | .strategy = &sysctl_intvec, |
| 890 | .extra1 = &zero, | ||
| 891 | }, | ||
| 892 | { | ||
| 893 | .ctl_name = VM_ZONE_RECLAIM_INTERVAL, | ||
| 894 | .procname = "zone_reclaim_interval", | ||
| 895 | .data = &zone_reclaim_interval, | ||
| 896 | .maxlen = sizeof(zone_reclaim_interval), | ||
| 897 | .mode = 0644, | ||
| 898 | .proc_handler = &proc_dointvec_jiffies, | ||
| 899 | .strategy = &sysctl_jiffies, | ||
| 882 | }, | 900 | }, |
| 883 | #endif | 901 | #endif |
| 884 | { .ctl_name = 0 } | 902 | { .ctl_name = 0 } |
