blob: e2aee82736646480e9cbbe2e9e3cbbefae87a51e [file] [log] [blame]
Waiman Longd73a3392015-04-24 14:56:31 -04001#ifndef _ASM_X86_QSPINLOCK_H
2#define _ASM_X86_QSPINLOCK_H
3
4#include <asm-generic/qspinlock_types.h>
5
6#define queued_spin_unlock queued_spin_unlock
7/**
8 * queued_spin_unlock - release a queued spinlock
9 * @lock : Pointer to queued spinlock structure
10 *
11 * A smp_store_release() on the least-significant byte.
12 */
13static inline void queued_spin_unlock(struct qspinlock *lock)
14{
15 smp_store_release((u8 *)lock, 0);
16}
17
18#include <asm-generic/qspinlock.h>
19
20#endif /* _ASM_X86_QSPINLOCK_H */