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

Commit 91c234b4 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: do not wakeup-preempt with SCHED_BATCH tasks



do not wakeup-preempt with SCHED_BATCH tasks, their preemption
is batched too, driven by the tick.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fb7dde37
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -828,6 +828,12 @@ static void check_preempt_wakeup(struct rq *rq, struct task_struct *p)
		resched_task(curr);
		return;
	}
	/*
	 * Batch tasks do not preempt (their preemption is driven by
	 * the tick):
	 */
	if (unlikely(p->policy == SCHED_BATCH))
		return;

	if (sched_feat(WAKEUP_PREEMPT)) {
		while (!is_same_group(se, pse)) {