Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [patch 00/17] CFS Bandwidth Control v7.1 | Date | Thu, 07 Jul 2011 09:52:23 -0700 |
| |
Peter Zijlstra <a.p.zijlstra@chello.nl> writes: > > +static void account_cfs_rq_runtime(struct cfs_rq *cfs_rq, > + unsigned long delta_exec) > +{ > + if (!cfs_rq->runtime_enabled) > + return; > + > + cfs_rq->runtime_remaining -= delta_exec; > + if (cfs_rq->runtime_remaining > 0) > + return; > + > + assign_cfs_rq_runtime(cfs_rq); > +} > > generate a call, only to then take the first branch out, marking that
You would need a *LOT* of calls to make up for 9%.
Maybe it's something else? Some profiling first before optimization is probably a good idea.
-Andi -- ak@linux.intel.com -- Speaking for myself only
| |