Lines Matching refs:next_task
2387 struct task_struct *next_task;
2391 next_task = pick_next_pushable_dl_task(rq);
2392 if (!next_task)
2397 * If next_task preempts rq->curr, and rq->curr
2399 * without going further in pushing next_task.
2402 dl_time_before(next_task->dl.deadline, rq->curr->dl.deadline) &&
2408 if (is_migration_disabled(next_task))
2411 if (WARN_ON(next_task == rq->curr))
2415 get_task_struct(next_task);
2418 later_rq = find_lock_later_rq(next_task, rq);
2425 * then possible that next_task has migrated.
2428 if (task == next_task) {
2440 put_task_struct(next_task);
2441 next_task = task;
2445 deactivate_task(rq, next_task, 0);
2446 set_task_cpu(next_task, later_rq->cpu);
2447 activate_task(later_rq, next_task, 0);
2455 put_task_struct(next_task);