Linux 4.1.18
[linux/fpc-iii.git] / arch / x86 / include / asm / qrwlock.h
blobae0e241e228b809a054ff9c7699ad4483f581428
1 #ifndef _ASM_X86_QRWLOCK_H
2 #define _ASM_X86_QRWLOCK_H
4 #include <asm-generic/qrwlock_types.h>
6 #ifndef CONFIG_X86_PPRO_FENCE
7 #define queue_write_unlock queue_write_unlock
8 static inline void queue_write_unlock(struct qrwlock *lock)
10 barrier();
11 ACCESS_ONCE(*(u8 *)&lock->cnts) = 0;
13 #endif
15 #include <asm-generic/qrwlock.h>
17 #endif /* _ASM_X86_QRWLOCK_H */