diff options
author | David Vrabel <david.vrabel@csr.com> | 2009-01-22 14:12:32 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2009-01-22 14:12:32 -0500 |
commit | dff243f7cb3a2ebbb09093066c1bc4a90ff5b3a4 (patch) | |
tree | 1c63e7c2f879cd322ca785671b74b4ff796dd24c /kernel/sysctl.c | |
parent | a5e6ced58d423cb09c4fc0087dcfdb0b5deb5e1c (diff) | |
parent | f3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-upstream
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 92f6e5bc3c24..368d1638ee78 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -82,6 +82,9 @@ extern int percpu_pagelist_fraction; | |||
82 | extern int compat_log; | 82 | extern int compat_log; |
83 | extern int latencytop_enabled; | 83 | extern int latencytop_enabled; |
84 | extern int sysctl_nr_open_min, sysctl_nr_open_max; | 84 | extern int sysctl_nr_open_min, sysctl_nr_open_max; |
85 | #ifndef CONFIG_MMU | ||
86 | extern int sysctl_nr_trim_pages; | ||
87 | #endif | ||
85 | #ifdef CONFIG_RCU_TORTURE_TEST | 88 | #ifdef CONFIG_RCU_TORTURE_TEST |
86 | extern int rcutorture_runnable; | 89 | extern int rcutorture_runnable; |
87 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | 90 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ |
@@ -141,6 +144,7 @@ extern int acct_parm[]; | |||
141 | 144 | ||
142 | #ifdef CONFIG_IA64 | 145 | #ifdef CONFIG_IA64 |
143 | extern int no_unaligned_warning; | 146 | extern int no_unaligned_warning; |
147 | extern int unaligned_dump_stack; | ||
144 | #endif | 148 | #endif |
145 | 149 | ||
146 | #ifdef CONFIG_RT_MUTEXES | 150 | #ifdef CONFIG_RT_MUTEXES |
@@ -778,6 +782,14 @@ static struct ctl_table kern_table[] = { | |||
778 | .mode = 0644, | 782 | .mode = 0644, |
779 | .proc_handler = &proc_dointvec, | 783 | .proc_handler = &proc_dointvec, |
780 | }, | 784 | }, |
785 | { | ||
786 | .ctl_name = CTL_UNNUMBERED, | ||
787 | .procname = "unaligned-dump-stack", | ||
788 | .data = &unaligned_dump_stack, | ||
789 | .maxlen = sizeof (int), | ||
790 | .mode = 0644, | ||
791 | .proc_handler = &proc_dointvec, | ||
792 | }, | ||
781 | #endif | 793 | #endif |
782 | #ifdef CONFIG_DETECT_SOFTLOCKUP | 794 | #ifdef CONFIG_DETECT_SOFTLOCKUP |
783 | { | 795 | { |
@@ -1102,6 +1114,17 @@ static struct ctl_table vm_table[] = { | |||
1102 | .mode = 0644, | 1114 | .mode = 0644, |
1103 | .proc_handler = &proc_dointvec | 1115 | .proc_handler = &proc_dointvec |
1104 | }, | 1116 | }, |
1117 | #else | ||
1118 | { | ||
1119 | .ctl_name = CTL_UNNUMBERED, | ||
1120 | .procname = "nr_trim_pages", | ||
1121 | .data = &sysctl_nr_trim_pages, | ||
1122 | .maxlen = sizeof(sysctl_nr_trim_pages), | ||
1123 | .mode = 0644, | ||
1124 | .proc_handler = &proc_dointvec_minmax, | ||
1125 | .strategy = &sysctl_intvec, | ||
1126 | .extra1 = &zero, | ||
1127 | }, | ||
1105 | #endif | 1128 | #endif |
1106 | { | 1129 | { |
1107 | .ctl_name = VM_LAPTOP_MODE, | 1130 | .ctl_name = VM_LAPTOP_MODE, |
@@ -1674,7 +1697,7 @@ int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol | |||
1674 | return error; | 1697 | return error; |
1675 | } | 1698 | } |
1676 | 1699 | ||
1677 | asmlinkage long sys_sysctl(struct __sysctl_args __user *args) | 1700 | SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args) |
1678 | { | 1701 | { |
1679 | struct __sysctl_args tmp; | 1702 | struct __sysctl_args tmp; |
1680 | int error; | 1703 | int error; |
@@ -2975,7 +2998,7 @@ int sysctl_ms_jiffies(struct ctl_table *table, | |||
2975 | #else /* CONFIG_SYSCTL_SYSCALL */ | 2998 | #else /* CONFIG_SYSCTL_SYSCALL */ |
2976 | 2999 | ||
2977 | 3000 | ||
2978 | asmlinkage long sys_sysctl(struct __sysctl_args __user *args) | 3001 | SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args) |
2979 | { | 3002 | { |
2980 | struct __sysctl_args tmp; | 3003 | struct __sysctl_args tmp; |
2981 | int error; | 3004 | int error; |