Re: page fault scalability patch V8: [4/7] universally available cmpxchg on i386

From: Andi Kleen
Date: Thu Sep 23 2004 - 04:05:57 EST


> Wouldn't alternative_input() choosing between a cmpxchg and a call be
> the way to go here? Or is the overhead too high in an inline function?

It would if you want the absolute micro optimization yes. Disadvantage
is that you would waste some more space for nops in the !CONFIG_I386 case.
I personally don't think it matters much and that Christian's original
code was just fine.

-Andi (last post on the thread)
-
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/