Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Arjan van de Ven and committed by
Ingo Molnar
2acbb8c6 823d0f4f

+171
+9
include/asm-alpha/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-cris/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-frv/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-h8300/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-ia64/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-m32r/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-m68k/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-m68knommu/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-mips/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-parisc/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-powerpc/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-s390/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-sh/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-sh64/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-sparc/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-sparc64/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-um/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-v850/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>
+9
include/asm-xtensa/mutex.h
··· 1 + /* 2 + * Pull in the generic implementation for the mutex fastpath. 3 + * 4 + * TODO: implement optimized primitives instead, or leave the generic 5 + * implementation in place, or pick the atomic_xchg() based generic 6 + * implementation. (see asm-generic/mutex-xchg.h for details) 7 + */ 8 + 9 + #include <asm-generic/mutex-dec.h>