sched/walt: Improve the scheduler

The change is for general scheduler improvement.

Change-Id: Ie54730178c19657e541cfba6ab84e075aaa799d7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2021-03-30 11:43:29 +05:30
commit 1fbc50bd88

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;
}
}