Re: [patch 2.6.14-rc4] i386: spinlock optimization

From: Andi Kleen
Date: Fri Oct 14 2005 - 13:04:33 EST

On Fri, Oct 14, 2005 at 01:47:09PM -0400, Chuck Ebbert wrote:
> Attempt to acquire spinlock sooner after spinning and then noticing
> it has become available. Also adds a slight delay before testing the
> spinlock again when it's not available, reducing bus traffic.

I doubt your change adds any noticeable delay on a aggressive
OOO CPU, which are pretty much all modern x86s. It's probably
a nop.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at