Linux 4.13.16
[linux/fpc-iii.git] / include / asm-generic / qrwlock_types.h
blob0abc6b6062fbb1c203bed0f025e05e82ac3eea24
1 #ifndef __ASM_GENERIC_QRWLOCK_TYPES_H
2 #define __ASM_GENERIC_QRWLOCK_TYPES_H
4 #include <linux/types.h>
5 #include <asm/spinlock_types.h>
7 /*
8 * The queue read/write lock data structure
9 */
11 typedef struct qrwlock {
12 atomic_t cnts;
13 arch_spinlock_t wait_lock;
14 } arch_rwlock_t;
16 #define __ARCH_RW_LOCK_UNLOCKED { \
17 .cnts = ATOMIC_INIT(0), \
18 .wait_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
21 #endif /* __ASM_GENERIC_QRWLOCK_TYPES_H */