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