aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 89d74436318c..c5ef44ff850f 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -101,6 +101,7 @@ static int two = 2;
101 101
102static int zero; 102static int zero;
103static int one = 1; 103static int one = 1;
104static unsigned long one_ul = 1;
104static int one_hundred = 100; 105static int one_hundred = 100;
105 106
106/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ 107/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
@@ -144,6 +145,7 @@ extern int acct_parm[];
144 145
145#ifdef CONFIG_IA64 146#ifdef CONFIG_IA64
146extern int no_unaligned_warning; 147extern int no_unaligned_warning;
148extern int unaligned_dump_stack;
147#endif 149#endif
148 150
149#ifdef CONFIG_RT_MUTEXES 151#ifdef CONFIG_RT_MUTEXES
@@ -781,6 +783,14 @@ static struct ctl_table kern_table[] = {
781 .mode = 0644, 783 .mode = 0644,
782 .proc_handler = &proc_dointvec, 784 .proc_handler = &proc_dointvec,
783 }, 785 },
786 {
787 .ctl_name = CTL_UNNUMBERED,
788 .procname = "unaligned-dump-stack",
789 .data = &unaligned_dump_stack,
790 .maxlen = sizeof (int),
791 .mode = 0644,
792 .proc_handler = &proc_dointvec,
793 },
784#endif 794#endif
785#ifdef CONFIG_DETECT_SOFTLOCKUP 795#ifdef CONFIG_DETECT_SOFTLOCKUP
786 { 796 {
@@ -800,7 +810,7 @@ static struct ctl_table kern_table[] = {
800 .data = &softlockup_thresh, 810 .data = &softlockup_thresh,
801 .maxlen = sizeof(int), 811 .maxlen = sizeof(int),
802 .mode = 0644, 812 .mode = 0644,
803 .proc_handler = &proc_dointvec_minmax, 813 .proc_handler = &proc_dosoftlockup_thresh,
804 .strategy = &sysctl_intvec, 814 .strategy = &sysctl_intvec,
805 .extra1 = &neg_one, 815 .extra1 = &neg_one,
806 .extra2 = &sixty, 816 .extra2 = &sixty,
@@ -965,7 +975,7 @@ static struct ctl_table vm_table[] = {
965 .mode = 0644, 975 .mode = 0644,
966 .proc_handler = &dirty_background_bytes_handler, 976 .proc_handler = &dirty_background_bytes_handler,
967 .strategy = &sysctl_intvec, 977 .strategy = &sysctl_intvec,
968 .extra1 = &one, 978 .extra1 = &one_ul,
969 }, 979 },
970 { 980 {
971 .ctl_name = VM_DIRTY_RATIO, 981 .ctl_name = VM_DIRTY_RATIO,
@@ -986,7 +996,7 @@ static struct ctl_table vm_table[] = {
986 .mode = 0644, 996 .mode = 0644,
987 .proc_handler = &dirty_bytes_handler, 997 .proc_handler = &dirty_bytes_handler,
988 .strategy = &sysctl_intvec, 998 .strategy = &sysctl_intvec,
989 .extra1 = &one, 999 .extra1 = &one_ul,
990 }, 1000 },
991 { 1001 {
992 .procname = "dirty_writeback_centisecs", 1002 .procname = "dirty_writeback_centisecs",
@@ -1688,7 +1698,7 @@ int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol
1688 return error; 1698 return error;
1689} 1699}
1690 1700
1691asmlinkage long sys_sysctl(struct __sysctl_args __user *args) 1701SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
1692{ 1702{
1693 struct __sysctl_args tmp; 1703 struct __sysctl_args tmp;
1694 int error; 1704 int error;
@@ -2989,7 +2999,7 @@ int sysctl_ms_jiffies(struct ctl_table *table,
2989#else /* CONFIG_SYSCTL_SYSCALL */ 2999#else /* CONFIG_SYSCTL_SYSCALL */
2990 3000
2991 3001
2992asmlinkage long sys_sysctl(struct __sysctl_args __user *args) 3002SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
2993{ 3003{
2994 struct __sysctl_args tmp; 3004 struct __sysctl_args tmp;
2995 int error; 3005 int error;