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

Andi Kleen
2004-09-23T09:03:55Z

> 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)