mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
17 lines
373 B
C
17 lines
373 B
C
#ifndef _ASM_X86_QRWLOCK_H
|
|
#define _ASM_X86_QRWLOCK_H
|
|
|
|
#include <asm-generic/qrwlock_types.h>
|
|
|
|
#ifndef CONFIG_X86_PPRO_FENCE
|
|
#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 */
|