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

Commit 1f2e22a5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: bonus vruntime for task boost 3"

parents 3f645fd1 9ea1270d
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. */