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

Commit 6cbf1c12 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: do not hurt SCHED_BATCH on wakeup



measurements by Yanmin Zhang have shown that SCHED_BATCH tasks benefit
if they run the same place_entity() logic as SCHED_OTHER tasks - so
uniformize behavior in this area.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2bacec8c
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -511,8 +511,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)


	if (!initial) {
	if (!initial) {
		/* sleeps upto a single latency don't count. */
		/* sleeps upto a single latency don't count. */
		if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se) &&
		if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se))
				task_of(se)->policy != SCHED_BATCH)
			vruntime -= sysctl_sched_latency;
			vruntime -= sysctl_sched_latency;


		/* ensure we never gain time by being placed backwards. */
		/* ensure we never gain time by being placed backwards. */