diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/atomic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/atomic.h b/arch/mips/atomic.h index cc5bf498..c82046a8 100644 --- a/arch/mips/atomic.h +++ b/arch/mips/atomic.h @@ -135,7 +135,9 @@ static inline void a_store(volatile int *p, int x) : "+m"(*p) : "r"(x) : "memory" ); } -static inline void a_spin() +#define a_spin a_barrier + +static inline void a_barrier() { a_cas(&(int){0}, 0, 0); } |