aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-10-15 11:00:14 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:14 -0400
commit8ca0e14ffb12c257de591571a9e96102acdb1c64 (patch)
tree21258bb0bacb051f3a4b11e89efe4821b5320c60 /kernel/sched_fair.c
parent810e95ccd58d91369191aa4ecc9e6d4a10d8d0c8 (diff)
sched: disable sleeper_fairness on SCHED_BATCH
disable sleeper fairness for batch tasks - they are about batch processing after all. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 3ecbfd0902d8..410b77aea216 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -485,7 +485,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
485 vruntime += sched_vslice_add(cfs_rq, se); 485 vruntime += sched_vslice_add(cfs_rq, se);
486 486
487 if (!initial) { 487 if (!initial) {
488 if (sched_feat(NEW_FAIR_SLEEPERS)) 488 struct task_struct *p = container_of(se, struct task_struct, se);
489
490 if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH)
489 vruntime -= sysctl_sched_latency; 491 vruntime -= sysctl_sched_latency;
490 492
491 vruntime = max_t(s64, vruntime, se->vruntime); 493 vruntime = max_t(s64, vruntime, se->vruntime);