X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-i386%2Fatomic.h;h=de649d3aa2d45d630874634c11f732e5e4819491;hb=0b60afba5397a3e63264463cde49426d8dcb0de4;hp=c68557aa04b2b0ef9246086f6d52b156c72966c0;hpb=f1b8c63ef404367c60dc9b4f68dec33cae3c707b;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-i386/atomic.h b/include/asm-i386/atomic.h index c68557aa04b..de649d3aa2d 100644 --- a/include/asm-i386/atomic.h +++ b/include/asm-i386/atomic.h @@ -216,6 +216,7 @@ static __inline__ int atomic_sub_return(int i, atomic_t *v) } #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 @@ -254,4 +255,5 @@ __asm__ __volatile__(LOCK "orl %0,%1" \ #define smp_mb__before_atomic_inc() barrier() #define smp_mb__after_atomic_inc() barrier() +#include #endif