Messages in this thread | | | From | Paul Turner <> | Date | Wed, 6 Apr 2011 13:47:02 -0700 | Subject | Re: [patch 03/15] sched: accumulate per-cfs_rq cpu usage |
| |
On Tue, Apr 5, 2011 at 6:28 AM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote: > On Tue, 2011-03-22 at 20:03 -0700, Paul Turner wrote: >> + min_amount = sched_cfs_bandwidth_slice() + (-cfs_rq->quota_remaining); > > funny way of writing that ;-) >
This was intended to call out that quota_remaining is <= 0 at this point -- making it a positive sum. A comment would do this just as well though. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |