diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-01-09 23:59:17 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@hera.kernel.org> | 2006-01-09 23:59:17 (GMT) |
commit | 620a6fd185c084aa617c411f711533f01ea673c9 (patch) | |
tree | 3ab1a296a2cd952bc3dd602fc5dd2ada9288b2c4 /mm | |
parent | 711a660dc2064013a2b0167ee67389707fc9cac3 (diff) | |
download | linux-fsl-qoriq-620a6fd185c084aa617c411f711533f01ea673c9.tar.xz |
[PATCH] mutex subsystem, add asm-generic/mutex-[dec|xchg|null].h implementations
Add three (generic) mutex fastpath implementations.
The mutex-xchg.h implementation is atomic_xchg() based, and should
work fine on every architecture.
The mutex-dec.h implementation is atomic_dec_return() based - this
one too should work on every architecture, but might not perform the
most optimally on architectures that have no atomic-dec/inc instructions.
The mutex-null.h implementation forces all calls into the slowpath. This
is used for mutex debugging, but it can also be used on platforms that do
not want (or need) a fastpath at all.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions