1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_QSPINLOCK_H
3#define _ASM_QSPINLOCK_H
4
5#include <asm-generic/qspinlock_types.h>
6
7#define queued_spin_unlock queued_spin_unlock
8
9static inline void queued_spin_unlock(struct qspinlock *lock)
10{
11	compiletime_assert_atomic_type(lock->locked);
12	c_sync();
13	WRITE_ONCE(lock->locked, 0);
14}
15
16#include <asm-generic/qspinlock.h>
17
18#endif /* _ASM_QSPINLOCK_H */
19