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

Commit 9ea1270d authored by Maria Yu's avatar Maria Yu Committed by Gerrit - the friendly Code Review server
Browse files

sched/fair: bonus vruntime for task boost 3



When task boost with special value 3 also have vruntime
bonus to run faster.

Change-Id: I7da2dd985a961671b27036a0d5b13cb79480c933
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 2a98f234
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4067,6 +4067,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
			thresh >>= 1;

		vruntime -= thresh;
		if (entity_is_task(se) && per_task_boost(task_of(se)) ==
				TASK_BOOST_STRICT_MAX)
			vruntime -= sysctl_sched_latency;
	}

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