diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/atomic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/atomic.h b/arch/powerpc/atomic.h index 1c50361e..f706543a 100644 --- a/arch/powerpc/atomic.h +++ b/arch/powerpc/atomic.h @@ -78,7 +78,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); } |