Merge "sched/walt: Improve the scheduler"

This commit is contained in:
qctecmdr 2021-03-31 10:40:13 -07:00 • committed by Gerrit - the friendly Code Review server
commit d1901c9d88

View file

@ -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))) {
vruntime -= thresh;
se->vruntime = vruntime;
}
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) {
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;
} else if (walt_binder_low_latency_task(task_of(se))) {
vruntime -= sysctl_sched_latency;
se->vruntime = vruntime;
return;
} else if (task_rtg_high_prio(task_of(se)) ||
walt_procfs_low_latency_task(task_of(se))) {
vruntime -= thresh;
se->vruntime = vruntime;
return;
}
}