diff options
author | Arun R Bharadwaj | 2009-04-16 08:45:34 +0200 |
---|---|---|
committer | Thomas Gleixner | 2009-05-13 16:52:42 +0200 |
commit | cd1bb94b4a0531e8211a3774f17de831f8285f76 (patch) | |
tree | 0a031dd2bd984cbfec88a3ced6b2c6e3326efb88 /kernel/sysctl.c | |
parent | timers: Identifying the existing pinned timers (diff) | |
download | kernel-qcow2-linux-cd1bb94b4a0531e8211a3774f17de831f8285f76.tar.gz kernel-qcow2-linux-cd1bb94b4a0531e8211a3774f17de831f8285f76.tar.xz kernel-qcow2-linux-cd1bb94b4a0531e8211a3774f17de831f8285f76.zip |
timers: /proc/sys sysctl hook to enable timer migration
* Arun R Bharadwaj <arun@linux.vnet.ibm.com> [2009-04-16 12:11:36]:
This patch creates the /proc/sys sysctl interface at
/proc/sys/kernel/timer_migration
Timer migration is enabled by default.
To disable timer migration, when CONFIG_SCHED_DEBUG = y,
echo 0 > /proc/sys/kernel/timer_migration
Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e3d2c7dd59b9..b3ce58137303 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -324,6 +324,14 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = &proc_dointvec, }, + { + .ctl_name = CTL_UNNUMBERED, + .procname = "timer_migration", + .data = &sysctl_timer_migration, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = &proc_dointvec, + }, #endif { .ctl_name = CTL_UNNUMBERED, |