diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 11d65b531e50..ae2719643854 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -57,6 +57,7 @@ | |||
57 | #include <linux/pipe_fs_i.h> | 57 | #include <linux/pipe_fs_i.h> |
58 | #include <linux/oom.h> | 58 | #include <linux/oom.h> |
59 | #include <linux/kmod.h> | 59 | #include <linux/kmod.h> |
60 | #include <linux/capability.h> | ||
60 | 61 | ||
61 | #include <asm/uaccess.h> | 62 | #include <asm/uaccess.h> |
62 | #include <asm/processor.h> | 63 | #include <asm/processor.h> |
@@ -134,6 +135,7 @@ static int minolduid; | |||
134 | static int min_percpu_pagelist_fract = 8; | 135 | static int min_percpu_pagelist_fract = 8; |
135 | 136 | ||
136 | static int ngroups_max = NGROUPS_MAX; | 137 | static int ngroups_max = NGROUPS_MAX; |
138 | static const int cap_last_cap = CAP_LAST_CAP; | ||
137 | 139 | ||
138 | #ifdef CONFIG_INOTIFY_USER | 140 | #ifdef CONFIG_INOTIFY_USER |
139 | #include <linux/inotify.h> | 141 | #include <linux/inotify.h> |
@@ -151,14 +153,6 @@ extern int pwrsw_enabled; | |||
151 | extern int unaligned_enabled; | 153 | extern int unaligned_enabled; |
152 | #endif | 154 | #endif |
153 | 155 | ||
154 | #ifdef CONFIG_S390 | ||
155 | #ifdef CONFIG_MATHEMU | ||
156 | extern int sysctl_ieee_emulation_warnings; | ||
157 | #endif | ||
158 | extern int sysctl_userprocess_debug; | ||
159 | extern int spin_retry; | ||
160 | #endif | ||
161 | |||
162 | #ifdef CONFIG_IA64 | 156 | #ifdef CONFIG_IA64 |
163 | extern int no_unaligned_warning; | 157 | extern int no_unaligned_warning; |
164 | extern int unaligned_dump_stack; | 158 | extern int unaligned_dump_stack; |
@@ -379,6 +373,16 @@ static struct ctl_table kern_table[] = { | |||
379 | .extra2 = &one, | 373 | .extra2 = &one, |
380 | }, | 374 | }, |
381 | #endif | 375 | #endif |
376 | #ifdef CONFIG_CFS_BANDWIDTH | ||
377 | { | ||
378 | .procname = "sched_cfs_bandwidth_slice_us", | ||
379 | .data = &sysctl_sched_cfs_bandwidth_slice, | ||
380 | .maxlen = sizeof(unsigned int), | ||
381 | .mode = 0644, | ||
382 | .proc_handler = proc_dointvec_minmax, | ||
383 | .extra1 = &one, | ||
384 | }, | ||
385 | #endif | ||
382 | #ifdef CONFIG_PROVE_LOCKING | 386 | #ifdef CONFIG_PROVE_LOCKING |
383 | { | 387 | { |
384 | .procname = "prove_locking", | 388 | .procname = "prove_locking", |
@@ -730,6 +734,13 @@ static struct ctl_table kern_table[] = { | |||
730 | .mode = 0444, | 734 | .mode = 0444, |
731 | .proc_handler = proc_dointvec, | 735 | .proc_handler = proc_dointvec, |
732 | }, | 736 | }, |
737 | { | ||
738 | .procname = "cap_last_cap", | ||
739 | .data = (void *)&cap_last_cap, | ||
740 | .maxlen = sizeof(int), | ||
741 | .mode = 0444, | ||
742 | .proc_handler = proc_dointvec, | ||
743 | }, | ||
733 | #if defined(CONFIG_LOCKUP_DETECTOR) | 744 | #if defined(CONFIG_LOCKUP_DETECTOR) |
734 | { | 745 | { |
735 | .procname = "watchdog", | 746 | .procname = "watchdog", |