Skip to content
Snippets Groups Projects
Commit 8bc6767a authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: wakeup preemption fix


wakeup preemption fix: do not make it dependent on p->prio.
Preemption purely depends on ->vruntime.

This improves preemption in mixed-nice-level workloads.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3e3e13f3
No related branches found
No related tags found
No related merge requests found
......@@ -863,10 +863,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
if (unlikely(se->load.weight != NICE_0_LOAD))
gran = calc_delta_fair(gran, &se->load);
if (delta > gran) {
if (p->prio < curr->prio)
resched_task(curr);
}
if (delta > gran)
resched_task(curr);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment