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