diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-15 01:44:51 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-15 01:44:51 -0400 |
commit | 43d2548bb2ef7e6d753f91468a746784041e522d (patch) | |
tree | 77d13fcd48fd998393abb825ec36e2b732684a73 /kernel/sysctl.c | |
parent | 585583d95c5660973bc0cf64add517b040acd8a4 (diff) | |
parent | 85082fd7cbe3173198aac0eb5e85ab1edcc6352c (diff) |
Merge commit '85082fd7cbe3173198aac0eb5e85ab1edcc6352c' into test-build
Manual fixup of:
arch/powerpc/Kconfig
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 31 |
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; | |||
132 | extern int spin_retry; | 133 | extern int spin_retry; |
133 | #endif | 134 | #endif |
134 | 135 | ||
135 | extern int sysctl_hz_timer; | ||
136 | |||
137 | #ifdef CONFIG_BSD_PROCESS_ACCT | 136 | #ifdef CONFIG_BSD_PROCESS_ACCT |
138 | extern int acct_parm[]; | 137 | extern 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", |