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

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

sched: disable sleeper_fairness on SCHED_BATCH



disable sleeper fairness for batch tasks - they are about
batch processing after all.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 810e95cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -485,7 +485,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
		vruntime += sched_vslice_add(cfs_rq, se);

	if (!initial) {
		if (sched_feat(NEW_FAIR_SLEEPERS))
		struct task_struct *p = container_of(se, struct task_struct, se);

		if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH)
			vruntime -= sysctl_sched_latency;

		vruntime = max_t(s64, vruntime, se->vruntime);