]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SPARC64]: Fix futex_atomic_cmpxchg_inatomic implementation.
authorDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2006 00:30:39 +0000 (16:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2006 00:30:39 +0000 (16:30 -0800)
commitc7fed9d75074f7c243ec8ff2c55d04de2839a6f6
treeb3392f8dc1db4707e19e260e8b2b71f5c2145eae
parent3ccfc65c5004e5fe5cfbffe43b8acc686680b53e
[SPARC64]: Fix futex_atomic_cmpxchg_inatomic implementation.

I copied the logic from ll/sc arch implementations, but that
was wrong and makes no sense at all.  Just do a straight
compare-exchange instruction, just like x86.

Based upon bug reports from Dennis Gilmore and Fabio Massimo.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/futex.h