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)
commit4c7c99788631bab177bd51e15e893be4689bb085
tree52e50e0b2a30b31dc8c6460e98279b3c1b47c476
parentf168dd00a9440a6f644db73bda47718fd12008e4
sh: Fix sh4a llsc-based cmpxchg()

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>
arch/sh/include/asm/atomic-llsc.h
arch/sh/include/asm/atomic.h
arch/sh/include/asm/cmpxchg-llsc.h
arch/sh/include/asm/spinlock.h