-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Arjan van de Ven
authored and
Ingo Molnar
committed
Jan 9, 2006
1 parent
823d0f4
commit 2acbb8c
Showing
19 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |