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

Commit d95f98d0 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

sched: fix fair preempt check



Impact: fix cross-class preemption

Inter-class wakeup preemptions should go on class order.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: default avatarMike Galbraith <efault@gmx.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f4b6755f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1329,6 +1329,9 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p, int sync)
		return;
	}

	if (unlikely(p->sched_class != &fair_sched_class))
		return;

	if (unlikely(se == pse))
		return;