Re: [PATCH 1/2] sched: entity load-tracking re-work - Fix for ARM

From: Pantelis Antoniou
Date: Tue Feb 28 2012 - 12:53:01 EST



On Feb 28, 2012, at 7:45 PM, Morten Rasmussen wrote:

> On Wed, Feb 29, 2012 at 10:37:38AM +0000, Pantelis Antoniou wrote:
>> @@ -1110,9 +1110,9 @@ static inline void __update_group_entity_contrib(struct sched_entity *se)
>> struct cfs_rq *cfs_rq = group_cfs_rq(se);
>> struct task_group *tg = cfs_rq->tg;
>> int runnable_avg;
>> + u64 contrib;
>>
>> - se->avg.load_avg_contrib = (cfs_rq->tg_load_contrib * tg->shares);
>> - se->avg.load_avg_contrib /= atomic64_read(&tg->load_avg) + 1;
>
> It seems that contrib is never assigned?
> Fix:
> + contrib = (cfs_rq->tg_load_contrib * tg->shares);
>
>> + se->avg.load_avg_contrib = div_u64(contrib, atomic64_read(&tg->load_avg) + 1);
>
> Regards,
> Morten
>

Hmm, yeah,

2 line patch and brown paper bag time.

Thanks

-- Pantelis--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/