mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
To sync up with the naming convention used in qspinlock, all the qrwlock functions were renamed to started with "queued" instead of "queue". Signed-off-by: Waiman Long <Waiman.Long@hp.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Douglas Hatch <doug.hatch@hp.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Scott J Norton <scott.norton@hp.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: http://lkml.kernel.org/r/1434729002-57724-2-git-send-email-Waiman.Long@hp.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
17 lines
376 B
C
17 lines
376 B
C
#ifndef _ASM_X86_QRWLOCK_H
|
|
#define _ASM_X86_QRWLOCK_H
|
|
|
|
#include <asm-generic/qrwlock_types.h>
|
|
|
|
#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 <asm-generic/qrwlock.h>
|
|
|
|
#endif /* _ASM_X86_QRWLOCK_H */
|