aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c46
1 files changed, 32 insertions, 14 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8bdb8c07e04f..6c97259e863e 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -27,7 +27,6 @@
27#include <linux/capability.h> 27#include <linux/capability.h>
28#include <linux/ctype.h> 28#include <linux/ctype.h>
29#include <linux/utsname.h> 29#include <linux/utsname.h>
30#include <linux/capability.h>
31#include <linux/smp_lock.h> 30#include <linux/smp_lock.h>
32#include <linux/fs.h> 31#include <linux/fs.h>
33#include <linux/init.h> 32#include <linux/init.h>
@@ -223,8 +222,19 @@ static ctl_table kern_table[] = {
223#ifdef CONFIG_SCHED_DEBUG 222#ifdef CONFIG_SCHED_DEBUG
224 { 223 {
225 .ctl_name = CTL_UNNUMBERED, 224 .ctl_name = CTL_UNNUMBERED,
226 .procname = "sched_granularity_ns", 225 .procname = "sched_min_granularity_ns",
227 .data = &sysctl_sched_granularity, 226 .data = &sysctl_sched_min_granularity,
227 .maxlen = sizeof(unsigned int),
228 .mode = 0644,
229 .proc_handler = &proc_dointvec_minmax,
230 .strategy = &sysctl_intvec,
231 .extra1 = &min_sched_granularity_ns,
232 .extra2 = &max_sched_granularity_ns,
233 },
234 {
235 .ctl_name = CTL_UNNUMBERED,
236 .procname = "sched_latency_ns",
237 .data = &sysctl_sched_latency,
228 .maxlen = sizeof(unsigned int), 238 .maxlen = sizeof(unsigned int),
229 .mode = 0644, 239 .mode = 0644,
230 .proc_handler = &proc_dointvec_minmax, 240 .proc_handler = &proc_dointvec_minmax,
@@ -284,6 +294,23 @@ static ctl_table kern_table[] = {
284 .mode = 0644, 294 .mode = 0644,
285 .proc_handler = &proc_dointvec, 295 .proc_handler = &proc_dointvec,
286 }, 296 },
297 {
298 .ctl_name = CTL_UNNUMBERED,
299 .procname = "sched_features",
300 .data = &sysctl_sched_features,
301 .maxlen = sizeof(unsigned int),
302 .mode = 0644,
303 .proc_handler = &proc_dointvec,
304 },
305#endif
306 {
307 .ctl_name = CTL_UNNUMBERED,
308 .procname = "sched_compat_yield",
309 .data = &sysctl_sched_compat_yield,
310 .maxlen = sizeof(unsigned int),
311 .mode = 0644,
312 .proc_handler = &proc_dointvec,
313 },
287#ifdef CONFIG_PROVE_LOCKING 314#ifdef CONFIG_PROVE_LOCKING
288 { 315 {
289 .ctl_name = CTL_UNNUMBERED, 316 .ctl_name = CTL_UNNUMBERED,
@@ -305,15 +332,6 @@ static ctl_table kern_table[] = {
305 }, 332 },
306#endif 333#endif
307 { 334 {
308 .ctl_name = CTL_UNNUMBERED,
309 .procname = "sched_features",
310 .data = &sysctl_sched_features,
311 .maxlen = sizeof(unsigned int),
312 .mode = 0644,
313 .proc_handler = &proc_dointvec,
314 },
315#endif
316 {
317 .ctl_name = KERN_PANIC, 335 .ctl_name = KERN_PANIC,
318 .procname = "panic", 336 .procname = "panic",
319 .data = &panic_timeout, 337 .data = &panic_timeout,
@@ -1035,7 +1053,7 @@ static ctl_table vm_table[] = {
1035 .strategy = &sysctl_string, 1053 .strategy = &sysctl_string,
1036 }, 1054 },
1037#endif 1055#endif
1038#if defined(CONFIG_X86_32) || \ 1056#if (defined(CONFIG_X86_32) && !defined(CONFIG_UML))|| \
1039 (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL)) 1057 (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL))
1040 { 1058 {
1041 .ctl_name = VM_VDSO_ENABLED, 1059 .ctl_name = VM_VDSO_ENABLED,
@@ -1203,7 +1221,7 @@ static ctl_table fs_table[] = {
1203}; 1221};
1204 1222
1205static ctl_table debug_table[] = { 1223static ctl_table debug_table[] = {
1206#ifdef CONFIG_X86 1224#if defined(CONFIG_X86) || defined(CONFIG_PPC)
1207 { 1225 {
1208 .ctl_name = CTL_UNNUMBERED, 1226 .ctl_name = CTL_UNNUMBERED,
1209 .procname = "exception-trace", 1227 .procname = "exception-trace",