diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 410b77aea216..3ac096e74faf 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -485,9 +485,8 @@ 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 | struct task_struct *p = container_of(se, struct task_struct, se); | 488 | if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se) && |
489 | 489 | task_of(se)->policy != SCHED_BATCH) | |
490 | if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH) | ||
491 | vruntime -= sysctl_sched_latency; | 490 | vruntime -= sysctl_sched_latency; |
492 | 491 | ||
493 | vruntime = max_t(s64, vruntime, se->vruntime); | 492 | vruntime = max_t(s64, vruntime, se->vruntime); |