summaryrefslogtreecommitdiffstats
path: root/include/asm-xtensa
diff options
context:
space:
mode:
authorArjan van de Ven2006-01-10 00:59:19 +0100
committerIngo Molnar2006-01-10 00:59:19 +0100
commit2acbb8c657af86b2fa5b185f1d7048385e310585 (patch)
treebc106bb2665a9c6267e6cc4eec9085deedd9e636 /include/asm-xtensa
parent[PATCH] mutex subsystem, add include/asm-arm/mutex.h (diff)
downloadkernel-qcow2-linux-2acbb8c657af86b2fa5b185f1d7048385e310585.tar.gz
kernel-qcow2-linux-2acbb8c657af86b2fa5b185f1d7048385e310585.tar.xz
kernel-qcow2-linux-2acbb8c657af86b2fa5b185f1d7048385e310585.zip
[PATCH] 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. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r--include/asm-xtensa/mutex.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-xtensa/mutex.h b/include/asm-xtensa/mutex.h
new file mode 100644
index 000000000000..458c1f7fbc18
--- /dev/null
+++ b/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>