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 c6887cf135c8..6b16e16428d8 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>
@@ -135,8 +136,6 @@ extern int sysctl_userprocess_debug;
135extern int spin_retry; 136extern int spin_retry;
136#endif 137#endif
137 138
138extern int sysctl_hz_timer;
139
140#ifdef CONFIG_BSD_PROCESS_ACCT 139#ifdef CONFIG_BSD_PROCESS_ACCT
141extern int acct_parm[]; 140extern int acct_parm[];
142#endif 141#endif
@@ -269,6 +268,14 @@ static struct ctl_table kern_table[] = {
269 }, 268 },
270 { 269 {
271 .ctl_name = CTL_UNNUMBERED, 270 .ctl_name = CTL_UNNUMBERED,
271 .procname = "sched_shares_ratelimit",
272 .data = &sysctl_sched_shares_ratelimit,
273 .maxlen = sizeof(unsigned int),
274 .mode = 0644,
275 .proc_handler = &proc_dointvec,
276 },
277 {
278 .ctl_name = CTL_UNNUMBERED,
272 .procname = "sched_child_runs_first", 279 .procname = "sched_child_runs_first",
273 .data = &sysctl_sched_child_runs_first, 280 .data = &sysctl_sched_child_runs_first,
274 .maxlen = sizeof(unsigned int), 281 .maxlen = sizeof(unsigned int),
@@ -458,6 +465,16 @@ static struct ctl_table kern_table[] = {
458 .mode = 0644, 465 .mode = 0644,
459 .proc_handler = &proc_dointvec, 466 .proc_handler = &proc_dointvec,
460 }, 467 },
468#ifdef CONFIG_FTRACE
469 {
470 .ctl_name = CTL_UNNUMBERED,
471 .procname = "ftrace_enabled",
472 .data = &ftrace_enabled,
473 .maxlen = sizeof(int),
474 .mode = 0644,
475 .proc_handler = &ftrace_enable_sysctl,
476 },
477#endif
461#ifdef CONFIG_KMOD 478#ifdef CONFIG_KMOD
462 { 479 {
463 .ctl_name = KERN_MODPROBE, 480 .ctl_name = KERN_MODPROBE,
@@ -566,16 +583,6 @@ static struct ctl_table kern_table[] = {
566 .proc_handler = &proc_dointvec, 583 .proc_handler = &proc_dointvec,
567 }, 584 },
568#endif 585#endif
569#ifdef CONFIG_NO_IDLE_HZ
570 {
571 .ctl_name = KERN_HZ_TIMER,
572 .procname = "hz_timer",
573 .data = &sysctl_hz_timer,
574 .maxlen = sizeof(int),
575 .mode = 0644,
576 .proc_handler = &proc_dointvec,
577 },
578#endif
579 { 586 {
580 .ctl_name = KERN_S390_USER_DEBUG_LOGGING, 587 .ctl_name = KERN_S390_USER_DEBUG_LOGGING,
581 .procname = "userprocess_debug", 588 .procname = "userprocess_debug",