mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Merge "sched/walt: Improve the scheduler"
This commit is contained in:
commit
6be142af12
1 changed files with 3 additions and 8 deletions
|
|
@ -4077,16 +4077,11 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
|
|||
TASK_BOOST_STRICT_MAX)
|
||||
vruntime -= sysctl_sched_latency;
|
||||
#ifdef CONFIG_SCHED_WALT
|
||||
else if (unlikely(task_of(se)->wts.low_latency)) {
|
||||
else if (task_of(se)->wts.low_latency ||
|
||||
task_rtg_high_prio(task_of(se))) {
|
||||
vruntime -= sysctl_sched_latency;
|
||||
vruntime -= thresh;
|
||||
se->vruntime = min_vruntime(vruntime,
|
||||
se->vruntime);
|
||||
return;
|
||||
} else if (task_rtg_high_prio(task_of(se))) {
|
||||
vruntime -= thresh;
|
||||
se->vruntime = min_vruntime(vruntime,
|
||||
se->vruntime);
|
||||
se->vruntime = vruntime;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue