aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b3cc73931d1f..3d56fe7570da 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -176,6 +176,9 @@ extern struct ctl_table random_table[];
176#ifdef CONFIG_INOTIFY_USER 176#ifdef CONFIG_INOTIFY_USER
177extern struct ctl_table inotify_table[]; 177extern struct ctl_table inotify_table[];
178#endif 178#endif
179#ifdef CONFIG_EPOLL
180extern struct ctl_table epoll_table[];
181#endif
179 182
180#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT 183#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
181int sysctl_legacy_va_layout; 184int sysctl_legacy_va_layout;
@@ -276,6 +279,16 @@ static struct ctl_table kern_table[] = {
276 }, 279 },
277 { 280 {
278 .ctl_name = CTL_UNNUMBERED, 281 .ctl_name = CTL_UNNUMBERED,
282 .procname = "sched_shares_thresh",
283 .data = &sysctl_sched_shares_thresh,
284 .maxlen = sizeof(unsigned int),
285 .mode = 0644,
286 .proc_handler = &proc_dointvec_minmax,
287 .strategy = &sysctl_intvec,
288 .extra1 = &zero,
289 },
290 {
291 .ctl_name = CTL_UNNUMBERED,
279 .procname = "sched_child_runs_first", 292 .procname = "sched_child_runs_first",
280 .data = &sysctl_sched_child_runs_first, 293 .data = &sysctl_sched_child_runs_first,
281 .maxlen = sizeof(unsigned int), 294 .maxlen = sizeof(unsigned int),
@@ -464,7 +477,7 @@ static struct ctl_table kern_table[] = {
464 .mode = 0644, 477 .mode = 0644,
465 .proc_handler = &proc_dointvec, 478 .proc_handler = &proc_dointvec,
466 }, 479 },
467#ifdef CONFIG_FTRACE 480#ifdef CONFIG_FUNCTION_TRACER
468 { 481 {
469 .ctl_name = CTL_UNNUMBERED, 482 .ctl_name = CTL_UNNUMBERED,
470 .procname = "ftrace_enabled", 483 .procname = "ftrace_enabled",
@@ -1315,6 +1328,13 @@ static struct ctl_table fs_table[] = {
1315 .child = inotify_table, 1328 .child = inotify_table,
1316 }, 1329 },
1317#endif 1330#endif
1331#ifdef CONFIG_EPOLL
1332 {
1333 .procname = "epoll",
1334 .mode = 0555,
1335 .child = epoll_table,
1336 },
1337#endif
1318#endif 1338#endif
1319 { 1339 {
1320 .ctl_name = KERN_SETUID_DUMPABLE, 1340 .ctl_name = KERN_SETUID_DUMPABLE,