X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-v850%2Fsystem.h;h=a34ddfafd56195bae8db73dfa08f987de2a73ed2;hb=f0b5a0dcf125ce43855961ef4f965a91112bea23;hp=7091af4b786677ca176f08d01127cc6f69361185;hpb=875999c5539999f61a45620aae0c3e5fb1d2b035;p=linux-2.6 diff --git a/include/asm-v850/system.h b/include/asm-v850/system.h index 7091af4b78..a34ddfafd5 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)