Commit 390f3258 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Ingo Molnar

sched/deadline: Skip in switched_to_dl() if task is current

When p is current and it's not of dl class, then there are no other
dl taks in the rq. If we had had pushable tasks in some other rq,
they would have been pushed earlier. So, skip "p == rq->curr" case.
Signed-off-by: default avatarKirill Tkhai <>
Acked-by: default avatarJuri Lelli <>
Signed-off-by: default avatarPeter Zijlstra <>
Link: default avatarIngo Molnar <>
parent eaa4e4fc
......@@ -1560,7 +1560,7 @@ static void switched_to_dl(struct rq *rq, struct task_struct *p)
if (unlikely(p->dl.dl_throttled))
if (p->on_rq || rq->curr != p) {
if (p->on_rq && rq->curr != p) {
if (rq->dl.overloaded && push_dl_task(rq) && rq != task_rq(p))
/* Only reschedule if pushing failed */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment