mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 21:02:35 +00:00
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>
This commit is contained in:
parent
f80c5b39b8
commit
69dd0f8488
@ -2775,51 +2775,9 @@ static inline int spin_needbreak(spinlock_t *lock)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Idle thread specific functions to determine the need_resched
|
* Idle thread specific functions to determine the need_resched
|
||||||
* polling state. We have two versions, one based on TS_POLLING in
|
* polling state.
|
||||||
* thread_info.status and one based on TIF_POLLING_NRFLAG in
|
|
||||||
* thread_info.flags
|
|
||||||
*/
|
*/
|
||||||
#ifdef TS_POLLING
|
#ifdef TIF_POLLING_NRFLAG
|
||||||
static inline int tsk_is_polling(struct task_struct *p)
|
|
||||||
{
|
|
||||||
return task_thread_info(p)->status & TS_POLLING;
|
|
||||||
}
|
|
||||||
static inline void __current_set_polling(void)
|
|
||||||
{
|
|
||||||
current_thread_info()->status |= TS_POLLING;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool __must_check current_set_polling_and_test(void)
|
|
||||||
{
|
|
||||||
__current_set_polling();
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Polling state must be visible before we test NEED_RESCHED,
|
|
||||||
* paired by resched_task()
|
|
||||||
*/
|
|
||||||
smp_mb();
|
|
||||||
|
|
||||||
return unlikely(tif_need_resched());
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void __current_clr_polling(void)
|
|
||||||
{
|
|
||||||
current_thread_info()->status &= ~TS_POLLING;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool __must_check current_clr_polling_and_test(void)
|
|
||||||
{
|
|
||||||
__current_clr_polling();
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Polling state must be visible before we test NEED_RESCHED,
|
|
||||||
* paired by resched_task()
|
|
||||||
*/
|
|
||||||
smp_mb();
|
|
||||||
|
|
||||||
return unlikely(tif_need_resched());
|
|
||||||
}
|
|
||||||
#elif defined(TIF_POLLING_NRFLAG)
|
|
||||||
static inline int tsk_is_polling(struct task_struct *p)
|
static inline int tsk_is_polling(struct task_struct *p)
|
||||||
{
|
{
|
||||||
return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG);
|
return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user