提交 8ca0e14f 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

sched: disable sleeper_fairness on SCHED_BATCH

disable sleeper fairness for batch tasks - they are about
batch processing after all.
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 810e95cc
...@@ -485,7 +485,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) ...@@ -485,7 +485,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
vruntime += sched_vslice_add(cfs_rq, se); vruntime += sched_vslice_add(cfs_rq, se);
if (!initial) { if (!initial) {
if (sched_feat(NEW_FAIR_SLEEPERS)) struct task_struct *p = container_of(se, struct task_struct, se);
if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH)
vruntime -= sysctl_sched_latency; vruntime -= sysctl_sched_latency;
vruntime = max_t(s64, vruntime, se->vruntime); vruntime = max_t(s64, vruntime, se->vruntime);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册