Skip to content

Commit

Permalink
[PATCH] mutex subsystem, add default include/asm-*/mutex.h files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Jan 9, 2006
1 parent 823d0f4 commit 2acbb8c
Show file tree
Hide file tree
Showing 19 changed files with 171 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/asm-alpha/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-cris/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-frv/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-h8300/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-ia64/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-m32r/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-m68k/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-m68knommu/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-mips/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-parisc/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-powerpc/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-s390/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-sh/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-sh64/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-sparc/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-sparc64/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-um/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-v850/mutex.h
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions include/asm-xtensa/mutex.h
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 2acbb8c

Please sign in to comment.