Skip to contentSkip to conversation

mutex subsystem, add default include/asm-*/mutex.h files

PATCH In review Ingo Molnar 1 participant 1 message Dec 27, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 6/11 mutex subsystem, add default include/asm-*/mutex.h files

add the per-arch mutex.h files for the remaining architectures.

We default to asm-generic/mutex-dec.h, because that performs quite well on most arches. Arches that do not have atomic decrement/increment instructions should switch to mutex-xchg.h instead. Arches can also provide their own implementation for the mutex fastpath primitives.

----

 include/asm-alpha/mutex.h     |    9 +++++++++
 include/asm-cris/mutex.h      |    9 +++++++++
 include/asm-frv/mutex.h       |    9 +++++++++
 include/asm-h8300/mutex.h     |    9 +++++++++
 include/asm-ia64/mutex.h      |    9 +++++++++
 include/asm-m32r/mutex.h      |    9 +++++++++
 include/asm-m68k/mutex.h      |    9 +++++++++
 include/asm-m68knommu/mutex.h |    9 +++++++++
 include/asm-mips/mutex.h      |    9 +++++++++
 include/asm-parisc/mutex.h    |    9 +++++++++
 include/asm-powerpc/mutex.h   |    9 +++++++++
 include/asm-s390/mutex.h      |    9 +++++++++
 include/asm-sh/mutex.h        |    9 +++++++++
 include/asm-sh64/mutex.h      |    9 +++++++++
 include/asm-sparc/mutex.h     |    9 +++++++++
 include/asm-sparc64/mutex.h   |    9 +++++++++
 include/asm-um/mutex.h        |    9 +++++++++
 include/asm-v850/mutex.h      |    9 +++++++++
 include/asm-xtensa/mutex.h    |    9 +++++++++
 19 files changed, 171 insertions(+)
include/asm-alpha/mutex.h new file +9 -0
Index: linux/include/asm-alpha/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-cris/mutex.h new file +9 -0
Index: linux/include/asm-cris/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-frv/mutex.h new file +9 -0
Index: linux/include/asm-frv/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-h8300/mutex.h new file +9 -0
Index: linux/include/asm-h8300/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-ia64/mutex.h new file +9 -0
Index: linux/include/asm-ia64/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-m32r/mutex.h new file +9 -0
Index: linux/include/asm-m32r/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-m68k/mutex.h new file +9 -0
Index: linux/include/asm-m68k/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-m68knommu/mutex.h new file +9 -0
Index: linux/include/asm-m68knommu/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-mips/mutex.h new file +9 -0
Index: linux/include/asm-mips/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-parisc/mutex.h new file +9 -0
Index: linux/include/asm-parisc/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-powerpc/mutex.h new file +9 -0
Index: linux/include/asm-powerpc/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-s390/mutex.h new file +9 -0
Index: linux/include/asm-s390/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-sh/mutex.h new file +9 -0
Index: linux/include/asm-sh/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-sh64/mutex.h new file +9 -0
Index: linux/include/asm-sh64/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-sparc/mutex.h new file +9 -0
Index: linux/include/asm-sparc/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-sparc64/mutex.h new file +9 -0
Index: linux/include/asm-sparc64/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-um/mutex.h new file +9 -0
Index: linux/include/asm-um/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-v850/mutex.h new file +9 -0
Index: linux/include/asm-v850/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>
include/asm-xtensa/mutex.h new file +9 -0
Index: linux/include/asm-xtensa/mutex.h
===================================================================
@@ -0,0 +1,9 @@
+/*
+ * Pull in the generic implementation for the mutex fastpath.
+ *
+ * TODO: implement optimized primitives instead, or leave the generic
+ * implementation in place, or pick the atomic_xchg() based generic
+ * implementation. (see asm-generic/mutex-xchg.h for details)
+ */
+
+#include <asm-generic/mutex-dec.h>