mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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:
parent
1e80429995
commit
1fbc50bd88
1 changed files with 7 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue