mutex subsystem, add per-arch mutex.h files
PATCH 3/8 mutex subsystem, add per-arch mutex.h files
add the per-arch mutex.h files. i386 and x86 provide their own fastpath implementation already, the others default to asm-generic/mutex-xchg.h.
Signed-off-by Arjan van de Ven <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
----
include/asm-alpha/mutex.h | 10 ++++ include/asm-arm/mutex.h | 8 +++ include/asm-arm26/mutex.h | 8 +++ include/asm-cris/mutex.h | 10 ++++ include/asm-frv/mutex.h | 10 ++++ include/asm-h8300/mutex.h | 10 ++++ include/asm-i386/mutex.h | 95 ++++++++++++++++++++++++++++++++++++++++++ include/asm-ia64/mutex.h | 10 ++++ include/asm-m32r/mutex.h | 10 ++++ include/asm-m68k/mutex.h | 10 ++++ include/asm-m68knommu/mutex.h | 10 ++++ include/asm-mips/mutex.h | 10 ++++ include/asm-parisc/mutex.h | 10 ++++ include/asm-powerpc/mutex.h | 10 ++++ include/asm-s390/mutex.h | 10 ++++ include/asm-sh/mutex.h | 10 ++++ include/asm-sh64/mutex.h | 10 ++++ include/asm-sparc/mutex.h | 10 ++++ include/asm-sparc64/mutex.h | 10 ++++ include/asm-um/mutex.h | 10 ++++ include/asm-v850/mutex.h | 10 ++++ include/asm-x86_64/mutex.h | 69 ++++++++++++++++++++++++++++++ include/asm-xtensa/mutex.h | 10 ++++ 23 files changed, 370 insertions(+)
include/asm-alpha/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-arm/mutex.h new file +8 -0
@@ -0,0 +1,8 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead +*/ + +#include <asm-generic/mutex-xchg.h>
include/asm-arm26/mutex.h new file +8 -0
@@ -0,0 +1,8 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead +*/ + +#include <asm-generic/mutex-xchg.h>
include/asm-cris/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-frv/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-h8300/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-i386/mutex.h new file +95 -0
95 lines not on this page · raw message
include/asm-ia64/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-m32r/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-m68k/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-m68knommu/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-mips/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-parisc/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-powerpc/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-s390/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-sh/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-sh64/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-sparc/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-sparc64/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-um/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-v850/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>
include/asm-x86_64/mutex.h new file +69 -0
69 lines not on this page · raw message
include/asm-xtensa/mutex.h new file +10 -0
@@ -0,0 +1,10 @@ +/* +* Pull in the generic wrappers for __mutex_fastpath_lock() and +* __mutex_fastpath_unlock(). +* +* TODO: implement optimized primitives instead, or leave the generic +* implementation in place, or pick the atomic_xchg() based +* generic implementation. +*/ + +#include <asm-generic/mutex-dec.h>