diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9f51932bd543..f0edee94834a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -295,6 +295,11 @@ enum uclamp_id { | |||
295 | UCLAMP_CNT | 295 | UCLAMP_CNT |
296 | }; | 296 | }; |
297 | 297 | ||
298 | #ifdef CONFIG_SMP | ||
299 | extern struct root_domain def_root_domain; | ||
300 | extern struct mutex sched_domains_mutex; | ||
301 | #endif | ||
302 | |||
298 | struct sched_info { | 303 | struct sched_info { |
299 | #ifdef CONFIG_SCHED_INFO | 304 | #ifdef CONFIG_SCHED_INFO |
300 | /* Cumulative counters: */ | 305 | /* Cumulative counters: */ |
@@ -1767,7 +1772,7 @@ static inline int test_tsk_need_resched(struct task_struct *tsk) | |||
1767 | * value indicates whether a reschedule was done in fact. | 1772 | * value indicates whether a reschedule was done in fact. |
1768 | * cond_resched_lock() will drop the spinlock before scheduling, | 1773 | * cond_resched_lock() will drop the spinlock before scheduling, |
1769 | */ | 1774 | */ |
1770 | #ifndef CONFIG_PREEMPT | 1775 | #ifndef CONFIG_PREEMPTION |
1771 | extern int _cond_resched(void); | 1776 | extern int _cond_resched(void); |
1772 | #else | 1777 | #else |
1773 | static inline int _cond_resched(void) { return 0; } | 1778 | static inline int _cond_resched(void) { return 0; } |
@@ -1796,12 +1801,12 @@ static inline void cond_resched_rcu(void) | |||
1796 | 1801 | ||
1797 | /* | 1802 | /* |
1798 | * Does a critical section need to be broken due to another | 1803 | * Does a critical section need to be broken due to another |
1799 | * task waiting?: (technically does not depend on CONFIG_PREEMPT, | 1804 | * task waiting?: (technically does not depend on CONFIG_PREEMPTION, |
1800 | * but a general need for low latency) | 1805 | * but a general need for low latency) |
1801 | */ | 1806 | */ |
1802 | static inline int spin_needbreak(spinlock_t *lock) | 1807 | static inline int spin_needbreak(spinlock_t *lock) |
1803 | { | 1808 | { |
1804 | #ifdef CONFIG_PREEMPT | 1809 | #ifdef CONFIG_PREEMPTION |
1805 | return spin_is_contended(lock); | 1810 | return spin_is_contended(lock); |
1806 | #else | 1811 | #else |
1807 | return 0; | 1812 | return 0; |