Skip to content
Commit 4db2ce01 authored by David S. Miller's avatar David S. Miller
Browse files

[LIB]: Consolidate _atomic_dec_and_lock()



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: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a805e86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment