From: Ingo Molnar Date: Wed, 1 Feb 2017 17:49:05 +0000 (+0100) Subject: sched/headers: Remove tsk_is_polling() X-Git-Tag: v4.14-rc1~1357^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f411229e1dd623a3dee623824d094546789977e0;p=platform%2Fkernel%2Flinux-rpi.git sched/headers: Remove tsk_is_polling() It's not used by anything. Acked-by: Linus Torvalds Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h index 66ee32f..5ca63eb 100644 --- a/include/linux/sched/idle.h +++ b/include/linux/sched/idle.h @@ -17,10 +17,6 @@ extern void wake_up_if_idle(int cpu); * polling state. */ #ifdef TIF_POLLING_NRFLAG -static inline int tsk_is_polling(struct task_struct *p) -{ - return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG); -} static inline void __current_set_polling(void) { @@ -59,7 +55,6 @@ static inline bool __must_check current_clr_polling_and_test(void) } #else -static inline int tsk_is_polling(struct task_struct *p) { return 0; } static inline void __current_set_polling(void) { } static inline void __current_clr_polling(void) { }