mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
d8534164bb
commit
e1459c8240
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