Re: [PATCH 6/8] rbtree: Implement generic latch_tree

From: Peter Zijlstra
Date: Thu Mar 19 2015 - 18:12:54 EST


On Thu, Mar 19, 2015 at 05:36:36PM -0400, Steven Rostedt wrote:
> On Thu, 19 Mar 2015 13:58:33 -0700
> Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> > OK. This code is basically required to support perf/ftrace and
> > modules, yes? Presumably small and space-constrained systems aren't
> > using either, so they don't take the hit.
> >
> > However CONFIG_MODULES systems which aren't using perf/ftrace _do_ take
> > a hit. How many systems are we talking here? All non-x86?
>
> Compromise... (Totally untested)

It only makes sense to out-of-line __lt_insert() (to avoid it being
inlined twice). And for that we can create an instantiation macro such
that it can still inline the comparison.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/