Re: [PATCH 3/2] sched/fair: Skip __update_load_avg() on cfs_rq sched_entities

From: Tejun Heo
Date: Mon Apr 24 2017 - 18:54:24 EST


Hello, Peter.

On Mon, Apr 24, 2017 at 11:48:59PM +0200, Peter Zijlstra wrote:
> On Mon, Apr 24, 2017 at 02:35:28PM -0700, Tejun Heo wrote:
> > - if (se->avg.last_update_time && !(flags & SKIP_AGE_LOAD)) {
> > - __update_load_avg(now, cpu, &se->avg,
> > - se->on_rq * scale_load_down(se->load.weight),
> > - cfs_rq->curr == se, NULL);
> > + if (entity_is_task(se)) {
> > + if (se->avg.last_update_time && !(flags & SKIP_AGE_LOAD))
> > + __update_load_avg(now, cpu, &se->avg,
> > + se->on_rq * scale_load_down(se->load.weight),
> > + cfs_rq->curr == se, NULL);
>
> I've not looked at these patches yet, but you've been patching old code.
> __update_load_avg() no longer exists (the conversion shouldn't be too
> hard, its mostly been a restructure/rename thing).

Ah, sure. The patchset still being RFC, I wanted to post the version
I was working with. If you want the patchset refreshed now, please
let me know.

Thanks.

--
tejun