#ifndef _ASM_X86_QRWLOCK_H #define _ASM_X86_QRWLOCK_H #include #ifndef CONFIG_X86_PPRO_FENCE #define queued_write_unlock queued_write_unlock static inline void queued_write_unlock(struct qrwlock *lock) { barrier(); ACCESS_ONCE(*(u8 *)&lock->cnts) = 0; } #endif #include #endif /* _ASM_X86_QRWLOCK_H */