From: Bruce Ashfield Date: Fri, 24 Aug 2007 18:39:10 +0000 (+0200) Subject: sched: CONFIG_SCHED_GROUP_FAIR=y fixlet X-Git-Tag: MMI-PSA29.97-13-9~40651^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c6c16f354cde4a48bd305b2587fc78257bcb936;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sched: CONFIG_SCHED_GROUP_FAIR=y fixlet when I built with CONFIG_FAIR_GROUP_SCHED=y, I need the following change to make things right. [ From: mingo@elte.hu ] this config option is not upstream-configurable right now but lets fix this for completeness. Signed-off-by: Bruce Ashfield Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index fedbb51bba96..b5270dc98bef 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -1057,7 +1057,7 @@ static void task_new_fair(struct rq *rq, struct task_struct *p) */ static void set_curr_task_fair(struct rq *rq) { - struct sched_entity *se = &rq->curr.se; + struct sched_entity *se = &rq->curr->se; for_each_sched_entity(se) set_next_entity(cfs_rq_of(se), se);