xref: /linux/arch/loongarch/include/asm/qspinlock.h (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
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 
9 static 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