summaryrefslogtreecommitdiff
path: root/arch/or1k/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/or1k/atomic.h')
-rw-r--r--arch/or1k/atomic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/or1k/atomic.h b/arch/or1k/atomic.h
index f9e69815..640ff430 100644
--- a/arch/or1k/atomic.h
+++ b/arch/or1k/atomic.h
@@ -72,7 +72,9 @@ static inline void a_store(volatile int *p, int x)
a_swap(p, x);
}
-static inline void a_spin()
+#define a_spin a_barrier
+
+static inline void a_barrier()
{
a_cas(&(int){0}, 0, 0);
}