sh: Fix sh4a llsc-based cmpxchg()
authorAoi Shinkai <shinkoi2005@gmail.com>
Wed, 10 Jun 2009 16:15:42 +0000 (16:15 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 11 Jun 2009 06:31:55 +0000 (09:31 +0300)
This fixes up a typo in the ll/sc based cmpxchg code which apparently
wasn't getting a lot of testing due to the swapped old/new pair. With
that fixed up, the ll/sc code also starts using it and provides its own
atomic_add_unless().

Signed-off-by: Aoi Shinkai <shinkoi2005@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found