Lines Matching defs:sync
1449 static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p, bool sync)
1452 * If the waker is CFS, then an RT sync wakeup would preempt the waker
1454 * done. So, only honor RT sync wakeups from RT wakers.
1456 return sync && task_has_rt_policy(rq->curr) && p->prio <= rq->rt.highest_prio.next && rq->rt.rt_nr_running <= 0x2;
1459 static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p, bool sync)
1471 bool sync = !!(flags & ENQUEUE_WAKEUP_SYNC);
1480 if (!task_current(rq, p) && p->nr_cpus_allowed > 1 && !should_honor_rt_sync(rq, p, sync)) {
1540 bool sync = !!(flags & WF_SYNC);
1584 * Respect the sync flag as long as the task can run on this CPU.
1586 if (should_honor_rt_sync(this_cpu_rq, p, sync) && cpumask_test_cpu(this_cpu, p->cpus_ptr)) {