commit | 4c7c99788631bab177bd51e15e893be4689bb085 | [log] [tgz] |
---|---|---|
author | Aoi Shinkai <shinkoi2005@gmail.com> | Wed Jun 10 16:15:42 2009 +0000 |
committer | Paul Mundt <lethal@linux-sh.org> | Thu Jun 11 09:31:55 2009 +0300 |
tree | 52e50e0b2a30b31dc8c6460e98279b3c1b47c476 | |
parent | f168dd00a9440a6f644db73bda47718fd12008e4 [diff] |
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>