lkml.org 
[lkml]   [2011]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch 00/17] CFS Bandwidth Control v7.1
Date
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


\
 
 \ /
  Last update: 2011-07-07 18:57    [W:0.112 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site