Merge "sched/walt: Improve the scheduler"

This commit is contained in:
qctecmdr 2020-08-15 07:11:23 -07:00 • committed by Gerrit - the friendly Code Review server
commit 6be142af12

View file

@ -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