Re: [patch] SMP alternatives

From: H. Peter Anvin
Date: Wed Nov 23 2005 - 22:56:39 EST


Mikulas Patocka wrote:

Why should they waste their (already complex) decoding logic with that?
Why can't an application instead set a bit somewhere if it's running on
SMP and if it's threaded and branch to variants with and without lock
prefix?


Why? Because it would make the same code run faster on their CPU than on their competitor's. That's the kind of things that make x86 vendors smile.

-hpa
-
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/