diff --git a/[refs] b/[refs] index f8fdcba9ee0a..3299b8c76a4c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ace8b3d633f93da8535921bf3e3679db3c619578 +refs/heads/master: e62dd02ed0af35631c6ca473e50758c9594773cf diff --git a/trunk/kernel/sched_fair.c b/trunk/kernel/sched_fair.c index 410b77aea216..3ac096e74faf 100644 --- a/trunk/kernel/sched_fair.c +++ b/trunk/kernel/sched_fair.c @@ -485,9 +485,8 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) vruntime += sched_vslice_add(cfs_rq, se); if (!initial) { - struct task_struct *p = container_of(se, struct task_struct, se); - - if (sched_feat(NEW_FAIR_SLEEPERS) && p->policy != SCHED_BATCH) + if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se) && + task_of(se)->policy != SCHED_BATCH) vruntime -= sysctl_sched_latency; vruntime = max_t(s64, vruntime, se->vruntime);