aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sched.h1
-rw-r--r--kernel/sched.c2
-rw-r--r--kernel/sysctl.c8
3 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b4c38bc8049c..618504010400 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1766,6 +1766,7 @@ extern unsigned int sysctl_sched_child_runs_first;
1766extern unsigned int sysctl_sched_features; 1766extern unsigned int sysctl_sched_features;
1767extern unsigned int sysctl_sched_migration_cost; 1767extern unsigned int sysctl_sched_migration_cost;
1768extern unsigned int sysctl_sched_nr_migrate; 1768extern unsigned int sysctl_sched_nr_migrate;
1769extern unsigned int sysctl_timer_migration;
1769 1770
1770int sched_nr_latency_handler(struct ctl_table *table, int write, 1771int sched_nr_latency_handler(struct ctl_table *table, int write,
1771 struct file *file, void __user *buffer, size_t *length, 1772 struct file *file, void __user *buffer, size_t *length,
diff --git a/kernel/sched.c b/kernel/sched.c
index 9c5b4d3f97ab..7f1dd56af863 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8731,6 +8731,8 @@ void __init sched_init_smp(void)
8731} 8731}
8732#endif /* CONFIG_SMP */ 8732#endif /* CONFIG_SMP */
8733 8733
8734const_debug unsigned int sysctl_timer_migration = 1;
8735
8734int in_sched_functions(unsigned long addr) 8736int in_sched_functions(unsigned long addr)
8735{ 8737{
8736 return in_lock_functions(addr) || 8738 return in_lock_functions(addr) ||
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[] = {
324 .mode = 0644, 324 .mode = 0644,
325 .proc_handler = &proc_dointvec, 325 .proc_handler = &proc_dointvec,
326 }, 326 },
327 {
328 .ctl_name = CTL_UNNUMBERED,
329 .procname = "timer_migration",
330 .data = &sysctl_timer_migration,
331 .maxlen = sizeof(unsigned int),
332 .mode = 0644,
333 .proc_handler = &proc_dointvec,
334 },
327#endif 335#endif
328 { 336 {
329 .ctl_name = CTL_UNNUMBERED, 337 .ctl_name = CTL_UNNUMBERED,