Lines Matching refs:curr
443 dl_rq->earliest_dl.curr = dl_rq->earliest_dl.next = 0; in init_dl_rq()
1116 if (dl_task(rq->curr)) in dl_task_timer()
1245 struct task_struct *curr = rq->curr; in update_curr_dl() local
1246 struct sched_dl_entity *dl_se = &curr->dl; in update_curr_dl()
1251 if (!dl_task(curr) || !on_dl_rq(dl_se)) in update_curr_dl()
1263 delta_exec = now - curr->se.exec_start; in update_curr_dl()
1270 schedstat_set(curr->se.statistics.exec_max, in update_curr_dl()
1271 max(curr->se.statistics.exec_max, delta_exec)); in update_curr_dl()
1273 curr->se.sum_exec_runtime += delta_exec; in update_curr_dl()
1274 account_group_exec_runtime(curr, delta_exec); in update_curr_dl()
1276 curr->se.exec_start = now; in update_curr_dl()
1277 cgroup_account_cputime(curr, delta_exec); in update_curr_dl()
1292 &curr->dl); in update_curr_dl()
1312 __dequeue_task_dl(rq, curr, 0); in update_curr_dl()
1313 if (unlikely(is_dl_boosted(dl_se) || !start_dl_timer(curr))) in update_curr_dl()
1314 enqueue_task_dl(rq, curr, ENQUEUE_REPLENISH); in update_curr_dl()
1316 if (!is_leftmost(curr, &rq->dl)) in update_curr_dl()
1402 if (dl_rq->earliest_dl.curr == 0 || in inc_dl_deadline()
1403 dl_time_before(deadline, dl_rq->earliest_dl.curr)) { in inc_dl_deadline()
1404 if (dl_rq->earliest_dl.curr == 0) in inc_dl_deadline()
1406 dl_rq->earliest_dl.curr = deadline; in inc_dl_deadline()
1420 dl_rq->earliest_dl.curr = 0; in dec_dl_deadline()
1423 cpupri_set(&rq->rd->cpupri, rq->cpu, rq->rt.highest_prio.curr); in dec_dl_deadline()
1429 dl_rq->earliest_dl.curr = entry->deadline; in dec_dl_deadline()
1659 rq->curr->dl.dl_yielded = 1; in yield_task_dl()
1678 struct task_struct *curr; in select_task_rq_dl() local
1694 curr = READ_ONCE(rq->curr); /* unlocked access */ in select_task_rq_dl()
1705 select_rq = unlikely(dl_task(curr)) && in select_task_rq_dl()
1706 (curr->nr_cpus_allowed < 2 || in select_task_rq_dl()
1707 !dl_entity_preempt(&p->dl, &curr->dl)) && in select_task_rq_dl()
1722 cpu_rq(target)->dl.earliest_dl.curr) || in select_task_rq_dl()
1771 if (rq->curr->nr_cpus_allowed == 1 || in check_preempt_equal_dl()
1772 !cpudl_find(&rq->rd->cpudl, rq->curr, NULL)) in check_preempt_equal_dl()
1811 if (dl_entity_preempt(&p->dl, &rq->curr->dl)) { in check_preempt_curr_dl()
1821 if ((p->dl.deadline == rq->curr->dl.deadline) && in check_preempt_curr_dl()
1822 !test_tsk_need_resched(rq->curr)) in check_preempt_curr_dl()
1851 if (rq->curr->sched_class != &dl_sched_class) in set_next_task_dl()
2079 later_rq->dl.earliest_dl.curr)) { in find_lock_later_rq()
2110 later_rq->dl.earliest_dl.curr)) in find_lock_later_rq()
2165 if (dl_task(rq->curr) && in push_dl_task()
2166 dl_time_before(next_task->dl.deadline, rq->curr->dl.deadline) && in push_dl_task()
2167 rq->curr->nr_cpus_allowed > 1) { in push_dl_task()
2175 if (WARN_ON(next_task == rq->curr)) in push_dl_task()
2265 dl_time_before(this_rq->dl.earliest_dl.curr, in pull_dl_task()
2290 this_rq->dl.earliest_dl.curr))) { in pull_dl_task()
2291 WARN_ON(p == src_rq->curr); in pull_dl_task()
2299 src_rq->curr->dl.deadline)) in pull_dl_task()
2338 !test_tsk_need_resched(rq->curr) && in task_woken_dl()
2340 dl_task(rq->curr) && in task_woken_dl()
2341 (rq->curr->nr_cpus_allowed < 2 || in task_woken_dl()
2342 !dl_entity_preempt(&p->dl, &rq->curr->dl))) { in task_woken_dl()
2389 cpudl_set(&rq->rd->cpudl, rq->cpu, rq->dl.earliest_dl.curr); in rq_online_dl()
2518 if (rq->curr != p) { in switched_to_dl()
2523 if (dl_task(rq->curr)) in switched_to_dl()
2555 if (dl_time_before(rq->dl.earliest_dl.curr, p->dl.deadline)) in prio_changed_dl()