diff options
| author | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2009-02-02 14:40:55 -0500 |
|---|---|---|
| committer | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2009-02-02 14:40:55 -0500 |
| commit | 8db0c5d5ef3ab99fe9e5151872b75f45c4282e3c (patch) | |
| tree | da9759151e00221c58cdd9f4de893c0b08753670 /kernel/sysctl.c | |
| parent | 1ad53a98c927a9b5b1b57288ac0edec562fbcf8d (diff) | |
| parent | 45c82b5a770be66845687a7d027c8b52946d59af (diff) | |
Merge branch 'master' of /home/shaggy/git/linus-clean/
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 92f6e5bc3c24..790f9d785663 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 | { |
| @@ -797,7 +809,7 @@ static struct ctl_table kern_table[] = { | |||
| 797 | .data = &softlockup_thresh, | 809 | .data = &softlockup_thresh, |
| 798 | .maxlen = sizeof(int), | 810 | .maxlen = sizeof(int), |
| 799 | .mode = 0644, | 811 | .mode = 0644, |
| 800 | .proc_handler = &proc_dointvec_minmax, | 812 | .proc_handler = &proc_dosoftlockup_thresh, |
| 801 | .strategy = &sysctl_intvec, | 813 | .strategy = &sysctl_intvec, |
| 802 | .extra1 = &neg_one, | 814 | .extra1 = &neg_one, |
| 803 | .extra2 = &sixty, | 815 | .extra2 = &sixty, |
| @@ -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; |
