Re: [wake_afine fixes/improvements 1/3] sched: updateeffective_load() to use global share weights

From: Peter Zijlstra
Date: Mon Jan 17 2011 - 09:59:42 EST


On Mon, 2011-01-17 at 15:11 +0100, Peter Zijlstra wrote:
>
> > + if (lw > 0 && wl < lw)
> > + wl = (wl * tg->shares) / lw;
> > + else
> > + wl = tg->shares;
>
> OK, so this computes the new load for this cpu, by taking the
> appropriate proportion of tg->shares, it clips on large wl, and does
> something funny for !lw -- on purpose?

D'0h, when !lw, the tg is empty and we don't care what happens since it
won't get scheduled anyway..

Ok, very nice, applied!
--
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/