blob: b1479fd04a951f1d82d55f77fd01cb9f0b072f38 [file] [log] [blame]
Nicolas Pitre823d0f42006-01-09 15:59:18 -08001/*
Russell King4baa9922008-08-02 10:55:55 +01002 * arch/arm/include/asm/mutex.h
Nicolas Pitre823d0f42006-01-09 15:59:18 -08003 *
4 * ARM optimized mutex locking primitives
5 *
6 * Please look into asm-generic/mutex-xchg.h for a formal definition.
7 */
8#ifndef _ASM_MUTEX_H
9#define _ASM_MUTEX_H
Nicolas Pitre823d0f42006-01-09 15:59:18 -080010/*
Will Deacona76d7bd2012-07-13 19:15:40 +010011 * On pre-ARMv6 hardware this results in a swp-based implementation,
12 * which is the most efficient. For ARMv6+, we emit a pair of exclusive
13 * accesses instead.
Nicolas Pitre823d0f42006-01-09 15:59:18 -080014 */
Will Deacona76d7bd2012-07-13 19:15:40 +010015#include <asm-generic/mutex-xchg.h>
Nicolas Pitre823d0f42006-01-09 15:59:18 -080016#endif