aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c31
1 files changed, 19 insertions, 12 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 29116652dca8..0d562d6531eb 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -46,6 +46,7 @@
46#include <linux/nfs_fs.h> 46#include <linux/nfs_fs.h>
47#include <linux/acpi.h> 47#include <linux/acpi.h>
48#include <linux/reboot.h> 48#include <linux/reboot.h>
49#include <linux/ftrace.h>
49 50
50#include <asm/uaccess.h> 51#include <asm/uaccess.h>
51#include <asm/processor.h> 52#include <asm/processor.h>
@@ -132,8 +133,6 @@ extern int sysctl_userprocess_debug;
132extern int spin_retry; 133extern int spin_retry;
133#endif 134#endif
134 135
135extern int sysctl_hz_timer;
136
137#ifdef CONFIG_BSD_PROCESS_ACCT 136#ifdef CONFIG_BSD_PROCESS_ACCT
138extern int acct_parm[]; 137extern int acct_parm[];
139#endif 138#endif
@@ -266,6 +265,14 @@ static struct ctl_table kern_table[] = {
266 }, 265 },
267 { 266 {
268 .ctl_name = CTL_UNNUMBERED, 267 .ctl_name = CTL_UNNUMBERED,
268 .procname = "sched_shares_ratelimit",
269 .data = &sysctl_sched_shares_ratelimit,
270 .maxlen = sizeof(unsigned int),
271 .mode = 0644,
272 .proc_handler = &proc_dointvec,
273 },
274 {
275 .ctl_name = CTL_UNNUMBERED,
269 .procname = "sched_child_runs_first", 276 .procname = "sched_child_runs_first",
270 .data = &sysctl_sched_child_runs_first, 277 .data = &sysctl_sched_child_runs_first,
271 .maxlen = sizeof(unsigned int), 278 .maxlen = sizeof(unsigned int),
@@ -455,6 +462,16 @@ static struct ctl_table kern_table[] = {
455 .mode = 0644, 462 .mode = 0644,
456 .proc_handler = &proc_dointvec, 463 .proc_handler = &proc_dointvec,
457 }, 464 },
465#ifdef CONFIG_FTRACE
466 {
467 .ctl_name = CTL_UNNUMBERED,
468 .procname = "ftrace_enabled",
469 .data = &ftrace_enabled,
470 .maxlen = sizeof(int),
471 .mode = 0644,
472 .proc_handler = &ftrace_enable_sysctl,
473 },
474#endif
458#ifdef CONFIG_KMOD 475#ifdef CONFIG_KMOD
459 { 476 {
460 .ctl_name = KERN_MODPROBE, 477 .ctl_name = KERN_MODPROBE,
@@ -563,16 +580,6 @@ static struct ctl_table kern_table[] = {
563 .proc_handler = &proc_dointvec, 580 .proc_handler = &proc_dointvec,
564 }, 581 },
565#endif 582#endif
566#ifdef CONFIG_NO_IDLE_HZ
567 {
568 .ctl_name = KERN_HZ_TIMER,
569 .procname = "hz_timer",
570 .data = &sysctl_hz_timer,
571 .maxlen = sizeof(int),
572 .mode = 0644,
573 .proc_handler = &proc_dointvec,
574 },
575#endif
576 { 583 {
577 .ctl_name = KERN_S390_USER_DEBUG_LOGGING, 584 .ctl_name = KERN_S390_USER_DEBUG_LOGGING,
578 .procname = "userprocess_debug", 585 .procname = "userprocess_debug",