Generic Mutex Subsystem, add-atomic-xchg-i386.patch
PATCH 1/15 Generic Mutex Subsystem, add-atomic-xchg-i386.patch
add atomic_cmpxchg() to i386. Needed by the new mutex code.
Signed-off-by Ingo Molnar <[email protected]>
----
include/asm-i386/atomic.h | 1 + 1 files changed, 1 insertion(+)
include/asm-i386/atomic.h +1 -0
@@ -216,6 +216,7 @@ static __inline__ int atomic_sub_return( }#define atomic_cmpxchg (v, old, new) ((int)cmpxchg(&((v)->counter), old, new)) +#define atomic_xchg (v, new) (xchg(&((v)->counter), new))/** * atomic_add_unless - add unless the number is a given value