]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/thread_info.h
sched, idle: Fix the idle polling state logic
[karo-tx-linux.git] / include / linux / thread_info.h
index a629e4b23217df9d0611f247c2c9144d62d662cc..fddbe2023a5d568717b3b90eabc692bb4612f9bd 100644 (file)
@@ -118,6 +118,8 @@ static inline __deprecated void set_need_resched(void)
         */
 }
 
+#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
+
 #if defined TIF_RESTORE_SIGMASK && !defined HAVE_SET_RESTORE_SIGMASK
 /*
  * An arch can define its own version of set_restore_sigmask() to get the