[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1320744505.2244.7.camel@twins>
Date: Tue, 08 Nov 2011 10:28:25 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Paul Turner <pjt@...gle.com>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>
Subject: Re: [patch 1/3] sched: use jump labels to reduce overhead when
bandwidth control is inactive
On Tue, 2011-11-08 at 10:26 +0100, Peter Zijlstra wrote:
> On Mon, 2011-11-07 at 20:26 -0800, Paul Turner wrote:
> > +static void account_cfs_bandwidth_used(int enabled, int was_enabled)
> > +{
> > + /* only need to count groups transitioning between enabled/!enabled */
> > + if (enabled && !was_enabled)
> > + jump_label_inc(&__cfs_bandwidth_used);
> > + else if (!enabled && was_enabled)
> > + jump_label_dec(&__cfs_bandwidth_used);
> > +}
>
> Can't you use jump_label_enabled(&__cfs_bandwidth_used) to was_enabled ?
n/m I'm not awake yet..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists