diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index fea9d188dbff..c900aa530070 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -261,6 +261,7 @@ extern void task_rq_unlock_wait(struct task_struct *p); | |||
261 | extern cpumask_var_t nohz_cpu_mask; | 261 | extern cpumask_var_t nohz_cpu_mask; |
262 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) | 262 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) |
263 | extern int select_nohz_load_balancer(int cpu); | 263 | extern int select_nohz_load_balancer(int cpu); |
264 | extern int get_nohz_load_balancer(void); | ||
264 | #else | 265 | #else |
265 | static inline int select_nohz_load_balancer(int cpu) | 266 | static inline int select_nohz_load_balancer(int cpu) |
266 | { | 267 | { |
@@ -1796,11 +1797,23 @@ extern unsigned int sysctl_sched_child_runs_first; | |||
1796 | extern unsigned int sysctl_sched_features; | 1797 | extern unsigned int sysctl_sched_features; |
1797 | extern unsigned int sysctl_sched_migration_cost; | 1798 | extern unsigned int sysctl_sched_migration_cost; |
1798 | extern unsigned int sysctl_sched_nr_migrate; | 1799 | extern unsigned int sysctl_sched_nr_migrate; |
1800 | extern unsigned int sysctl_timer_migration; | ||
1799 | 1801 | ||
1800 | int sched_nr_latency_handler(struct ctl_table *table, int write, | 1802 | int sched_nr_latency_handler(struct ctl_table *table, int write, |
1801 | struct file *file, void __user *buffer, size_t *length, | 1803 | struct file *file, void __user *buffer, size_t *length, |
1802 | loff_t *ppos); | 1804 | loff_t *ppos); |
1803 | #endif | 1805 | #endif |
1806 | #ifdef CONFIG_SCHED_DEBUG | ||
1807 | static inline unsigned int get_sysctl_timer_migration(void) | ||
1808 | { | ||
1809 | return sysctl_timer_migration; | ||
1810 | } | ||
1811 | #else | ||
1812 | static inline unsigned int get_sysctl_timer_migration(void) | ||
1813 | { | ||
1814 | return 1; | ||
1815 | } | ||
1816 | #endif | ||
1804 | extern unsigned int sysctl_sched_rt_period; | 1817 | extern unsigned int sysctl_sched_rt_period; |
1805 | extern int sysctl_sched_rt_runtime; | 1818 | extern int sysctl_sched_rt_runtime; |
1806 | 1819 | ||