mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "sched/walt: Improve the scheduler"
This commit is contained in:
commit
d1901c9d88
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