Lines Matching defs:tif
1062 static inline bool set_nr_and_not_polling(struct thread_info *ti, int tif)
1064 return !(fetch_or(&ti->flags, 1 << tif) & _TIF_POLLING_NRFLAG);
1089 static inline bool set_nr_and_not_polling(struct thread_info *ti, int tif)
1091 set_ti_thread_flag(ti, tif);
1195 static void __resched_curr(struct rq *rq, int tif)
1207 if (is_idle_task(curr) && tif == TIF_NEED_RESCHED_LAZY)
1208 tif = TIF_NEED_RESCHED;
1210 if (cti->flags & ((1 << tif) | _TIF_NEED_RESCHED))
1215 trace_sched_set_need_resched_tp(curr, cpu, tif);
1217 set_ti_thread_flag(cti, tif);
1218 if (tif == TIF_NEED_RESCHED)
1223 if (set_nr_and_not_polling(cti, tif)) {
1224 if (tif == TIF_NEED_RESCHED)
1235 void __trace_set_need_resched(struct task_struct *curr, int tif)
1237 trace_call__sched_set_need_resched_tp(curr, smp_processor_id(), tif);