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

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

Merge "sched/walt: Improve the scheduler"

parents aa968076 1fbc50bd
Loading
Loading
Loading
Loading
+7 −12
Original line number Diff line number Diff line
@@ -4091,24 +4091,19 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
		vruntime -= thresh;
#ifdef CONFIG_SCHED_WALT
		if (entity_is_task(se)) {
			if (task_rtg_high_prio(task_of(se)) ||
					walt_procfs_low_latency_task(task_of(se))) {
			if (per_task_boost(task_of(se)) == TASK_BOOST_STRICT_MAX) {
				vruntime -= thresh;
				vruntime -= sysctl_sched_latency;
				se->vruntime = vruntime;
			}
			if (walt_binder_low_latency_task(task_of(se))) {
				return;
			} else if (walt_binder_low_latency_task(task_of(se))) {
				vruntime -= sysctl_sched_latency;
				se->vruntime = vruntime;
			}
			if (per_task_boost(task_of(se)) == TASK_BOOST_STRICT_MAX) {
				return;
			} else if (task_rtg_high_prio(task_of(se)) ||
					walt_procfs_low_latency_task(task_of(se))) {
				vruntime -= thresh;
				vruntime -= sysctl_sched_latency;
				se->vruntime = vruntime;
			}
			if ((per_task_boost(task_of(se)) ==
					TASK_BOOST_STRICT_MAX) ||
					walt_low_latency_task(task_of(se)) ||
					task_rtg_high_prio(task_of(se))) {
				return;
			}
		}