]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - include/asm-generic/qrwlock_types.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / include / asm-generic / qrwlock_types.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
70af2f8a
WL
2#ifndef __ASM_GENERIC_QRWLOCK_TYPES_H
3#define __ASM_GENERIC_QRWLOCK_TYPES_H
4
5#include <linux/types.h>
6#include <asm/spinlock_types.h>
7
8/*
9 * The queue read/write lock data structure
10 */
11
12typedef struct qrwlock {
13 atomic_t cnts;
6e1e5196 14 arch_spinlock_t wait_lock;
70af2f8a
WL
15} arch_rwlock_t;
16
17#define __ARCH_RW_LOCK_UNLOCKED { \
18 .cnts = ATOMIC_INIT(0), \
6e1e5196 19 .wait_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
70af2f8a
WL
20}
21
22#endif /* __ASM_GENERIC_QRWLOCK_TYPES_H */