[patch] powerpc: hash lock use lock bitops

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Nov 20 17:08:24 EST 2007


On Tue, 2007-11-20 at 06:09 +0100, Nick Piggin wrote:
> This isn't a bugfix, but may help performance slightly...
> 
> --
> powerpc 64-bit hash pte lock bit is an actual lock, so it can take advantage
> of lock bitops for slightly more optimal memory barriers (can avoid an lwsync
> in the trylock).
> 
> Signed-off-by: Nick Piggin <npiggin at suse.de>
> Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---

Looks nice, I'll try it out on a G5 and let you know.

Cheers,
Ben.





More information about the Linuxppc-dev mailing list