diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 4 |
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); |