X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-v850%2Fsystem.h;h=a34ddfafd56195bae8db73dfa08f987de2a73ed2;hb=24e1c13c93cbdd05e4b7ea921c0050b036555adc;hp=7091af4b786677ca176f08d01127cc6f69361185;hpb=bad7af550e90ab82e74024357438d77b561e1b5f;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-v850/system.h b/include/asm-v850/system.h index 7091af4b786..a34ddfafd56 100644 --- a/include/asm-v850/system.h +++ b/include/asm-v850/system.h @@ -66,9 +66,7 @@ static inline int irqs_disabled (void) #define rmb() mb () #define wmb() mb () #define read_barrier_depends() ((void)0) -#define set_rmb(var, value) do { xchg (&var, value); } while (0) -#define set_mb(var, value) set_rmb (var, value) -#define set_wmb(var, value) do { var = value; wmb (); } while (0) +#define set_mb(var, value) do { xchg (&var, value); } while (0) #define smp_mb() mb () #define smp_rmb() rmb () @@ -77,7 +75,6 @@ static inline int irqs_disabled (void) #define xchg(ptr, with) \ ((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr)))) -#define tas(ptr) (xchg ((ptr), 1)) static inline unsigned long __xchg (unsigned long with, __volatile__ void *ptr, int size)