diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 618504010400..311dec123974 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -257,6 +257,7 @@ extern void task_rq_unlock_wait(struct task_struct *p); | |||
257 | extern cpumask_var_t nohz_cpu_mask; | 257 | extern cpumask_var_t nohz_cpu_mask; |
258 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) | 258 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) |
259 | extern int select_nohz_load_balancer(int cpu); | 259 | extern int select_nohz_load_balancer(int cpu); |
260 | extern int get_nohz_load_balancer(void); | ||
260 | #else | 261 | #else |
261 | static inline int select_nohz_load_balancer(int cpu) | 262 | static inline int select_nohz_load_balancer(int cpu) |
262 | { | 263 | { |
@@ -1772,6 +1773,17 @@ int sched_nr_latency_handler(struct ctl_table *table, int write, | |||
1772 | struct file *file, void __user *buffer, size_t *length, | 1773 | struct file *file, void __user *buffer, size_t *length, |
1773 | loff_t *ppos); | 1774 | loff_t *ppos); |
1774 | #endif | 1775 | #endif |
1776 | #ifdef CONFIG_SCHED_DEBUG | ||
1777 | static inline unsigned int get_sysctl_timer_migration(void) | ||
1778 | { | ||
1779 | return sysctl_timer_migration; | ||
1780 | } | ||
1781 | #else | ||
1782 | static inline unsigned int get_sysctl_timer_migration(void) | ||
1783 | { | ||
1784 | return 1; | ||
1785 | } | ||
1786 | #endif | ||
1775 | extern unsigned int sysctl_sched_rt_period; | 1787 | extern unsigned int sysctl_sched_rt_period; |
1776 | extern int sysctl_sched_rt_runtime; | 1788 | extern int sysctl_sched_rt_runtime; |
1777 | 1789 | ||