mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
2acbb8c657
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>
9 lines
308 B
C
9 lines
308 B
C
/*
|
|
* 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>
|