Messages in this thread | | | Subject | Re: [wake_afine fixes/improvements 1/3] sched: update effective_load() to use global share weights | From | Peter Zijlstra <> | Date | Mon, 17 Jan 2011 15:20:35 +0100 |
| |
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!
| |