summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/asm/mutex.h')
-rw-r--r--arch/arm/include/asm/mutex.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mutex.h b/arch/arm/include/asm/mutex.h
new file mode 100644
index 00000000..b1479fd0
--- /dev/null
+++ b/arch/arm/include/asm/mutex.h
@@ -0,0 +1,16 @@
+/*
+ * arch/arm/include/asm/mutex.h
+ *
+ * ARM optimized mutex locking primitives
+ *
+ * Please look into asm-generic/mutex-xchg.h for a formal definition.
+ */
+#ifndef _ASM_MUTEX_H
+#define _ASM_MUTEX_H
+/*
+ * On pre-ARMv6 hardware this results in a swp-based implementation,
+ * which is the most efficient. For ARMv6+, we emit a pair of exclusive
+ * accesses instead.
+ */
+#include <asm-generic/mutex-xchg.h>
+#endif