1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_GENERIC_SPINLOCK_TYPES_H
4 #define __ASM_GENERIC_SPINLOCK_TYPES_H
6 #include <linux/types.h>
7 typedef atomic_t arch_spinlock_t;
10 * qrwlock_types depends on arch_spinlock_t, so we must typedef that before the
13 #include <asm/qrwlock_types.h>
15 #define __ARCH_SPIN_LOCK_UNLOCKED ATOMIC_INIT(0)
17 #endif /* __ASM_GENERIC_SPINLOCK_TYPES_H */