[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3E8017B2-836A-466A-92F1-E625F49E554D@antoniou-consulting.com>
Date: Tue, 28 Feb 2012 19:52:56 +0200
From: Pantelis Antoniou <panto@...oniou-consulting.com>
To: Morten Rasmussen <Morten.Rasmussen@....com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Paul Turner <pjt@...gle.com>
Subject: Re: [PATCH 1/2] sched: entity load-tracking re-work - Fix for ARM
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists