diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2014-04-09 08:30:10 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-05-08 03:16:57 -0400 |
| commit | 69dd0f848879328ae6c6f54c2ec80e49eef042d8 (patch) | |
| tree | 1deaadac5a4817b56930406e0e5000578717fb33 /include/linux | |
| parent | f80c5b39b80ab4d52acd940c03b89948cafdbd18 (diff) | |
sched/idle: Remove TS_POLLING support
Now that there are no architectures left using it, kill the support
for TS_POLLING.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/n/tip-6yurip2tfix2f4bfc5agu2s0@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index accb66bfd722..725eef121c9f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -2775,51 +2775,9 @@ static inline int spin_needbreak(spinlock_t *lock) | |||
| 2775 | 2775 | ||
| 2776 | /* | 2776 | /* |
| 2777 | * Idle thread specific functions to determine the need_resched | 2777 | * Idle thread specific functions to determine the need_resched |
| 2778 | * polling state. We have two versions, one based on TS_POLLING in | 2778 | * polling state. |
| 2779 | * thread_info.status and one based on TIF_POLLING_NRFLAG in | ||
| 2780 | * thread_info.flags | ||
| 2781 | */ | 2779 | */ |
| 2782 | #ifdef TS_POLLING | 2780 | #ifdef TIF_POLLING_NRFLAG |
| 2783 | static inline int tsk_is_polling(struct task_struct *p) | ||
| 2784 | { | ||
| 2785 | return task_thread_info(p)->status & TS_POLLING; | ||
| 2786 | } | ||
| 2787 | static inline void __current_set_polling(void) | ||
| 2788 | { | ||
| 2789 | current_thread_info()->status |= TS_POLLING; | ||
| 2790 | } | ||
| 2791 | |||
| 2792 | static inline bool __must_check current_set_polling_and_test(void) | ||
| 2793 | { | ||
| 2794 | __current_set_polling(); | ||
| 2795 | |||
| 2796 | /* | ||
| 2797 | * Polling state must be visible before we test NEED_RESCHED, | ||
| 2798 | * paired by resched_task() | ||
| 2799 | */ | ||
| 2800 | smp_mb(); | ||
| 2801 | |||
| 2802 | return unlikely(tif_need_resched()); | ||
| 2803 | } | ||
| 2804 | |||
| 2805 | static inline void __current_clr_polling(void) | ||
| 2806 | { | ||
| 2807 | current_thread_info()->status &= ~TS_POLLING; | ||
| 2808 | } | ||
| 2809 | |||
| 2810 | static inline bool __must_check current_clr_polling_and_test(void) | ||
| 2811 | { | ||
| 2812 | __current_clr_polling(); | ||
| 2813 | |||
| 2814 | /* | ||
| 2815 | * Polling state must be visible before we test NEED_RESCHED, | ||
| 2816 | * paired by resched_task() | ||
| 2817 | */ | ||
| 2818 | smp_mb(); | ||
| 2819 | |||
| 2820 | return unlikely(tif_need_resched()); | ||
| 2821 | } | ||
| 2822 | #elif defined(TIF_POLLING_NRFLAG) | ||
| 2823 | static inline int tsk_is_polling(struct task_struct *p) | 2781 | static inline int tsk_is_polling(struct task_struct *p) |
| 2824 | { | 2782 | { |
| 2825 | return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG); | 2783 | return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG); |
