Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -863,12 +863,10 @@ 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)
		if (delta > gran)
			resched_task(curr);
	}
}
}

static struct task_struct *pick_next_task_fair(struct rq *rq)
{