[LIB]: Consolidate _atomic_dec_and_lock()
authorDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2005 04:47:01 +0000 (21:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2005 04:47:01 +0000 (21:47 -0700)
Several implementations were essentialy a common piece of C code using
the cmpxchg() macro.  Put the implementation in one spot that everyone
can share, and convert sparc64 over to using this.

Alpha is the lone arch-specific implementation, which codes up a
special fast path for the common case in order to avoid GP reloading
which a pure C version would require.

Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found