sched/walt: Improve the scheduler

This change is for general scheduler improvement.

Change-Id: I7da1c3cff4fb9470a3904407f180463c26315e68
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2020-08-07 12:58:26 +05:30
commit e1459c8240

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