mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3e3e13f399
commit
8bc6767acb
1 changed files with 2 additions and 4 deletions
|
@ -863,10 +863,8 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
|
||||||
if (unlikely(se->load.weight != NICE_0_LOAD))
|
if (unlikely(se->load.weight != NICE_0_LOAD))
|
||||||
gran = calc_delta_fair(gran, &se->load);
|
gran = calc_delta_fair(gran, &se->load);
|
||||||
|
|
||||||
if (delta > gran) {
|
if (delta > gran)
|
||||||
if (p->prio < curr->prio)
|
resched_task(curr);
|
||||||
resched_task(curr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue