2014-02-03 16:18:57 +04:00
|
|
|
#ifndef _ASM_X86_QRWLOCK_H
|
|
|
|
#define _ASM_X86_QRWLOCK_H
|
|
|
|
|
|
|
|
#include <asm-generic/qrwlock_types.h>
|
|
|
|
|
2014-06-11 13:01:45 +04:00
|
|
|
#ifndef CONFIG_X86_PPRO_FENCE
|
2014-02-03 16:18:57 +04:00
|
|
|
#define queue_write_unlock queue_write_unlock
|
|
|
|
static inline void queue_write_unlock(struct qrwlock *lock)
|
|
|
|
{
|
|
|
|
barrier();
|
|
|
|
ACCESS_ONCE(*(u8 *)&lock->cnts) = 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <asm-generic/qrwlock.h>
|
|
|
|
|
|
|
|
#endif /* _ASM_X86_QRWLOCK_H */
|