summaryrefslogtreecommitdiff
path: root/arch/microblaze/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/atomic.h')
-rw-r--r--arch/microblaze/atomic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/atomic.h b/arch/microblaze/atomic.h
index abb79b53..93404b94 100644
--- a/arch/microblaze/atomic.h
+++ b/arch/microblaze/atomic.h
@@ -95,7 +95,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);
}