]> git.openfabrics.org - ~emulex/infiniband.git/commit
sh: consolidate atomic_cmpxchg()/atomic_add_unless() definitions.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 8 Jan 2010 08:02:17 +0000 (17:02 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 8 Jan 2010 08:02:17 +0000 (17:02 +0900)
commit8c0b8139c87cfe8b95c6e763b4ca3190aa9b1ad0
tree79ee3c612843d11d5b3fbebb8d00ca956a044316
parent56d45b62ce622a003da972428fdbba2b42102efb
sh: consolidate atomic_cmpxchg()/atomic_add_unless() definitions.

The LL/SC and IRQ versions were using generic stubs while the GRB version
was just reimplementing what it already had for the standard cmpxchg()
code. As we have optimized cmpxchg() implementations that are decoupled
from the atomic code, simply falling back on the generic wrapper does the
right thing. With this in place the GRB case is unaffected while the
LL/SC case gets to use its optimized cmpxchg().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/atomic-grb.h
arch/sh/include/asm/atomic-llsc.h
arch/sh/include/asm/atomic.h