arch/s390/include/asm/spinlock_types.h
raw| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __ASM_SPINLOCK_TYPES_H |
| 3 | #define __ASM_SPINLOCK_TYPES_H |
| 4 | |
| 5 | #ifndef __LINUX_SPINLOCK_TYPES_RAW_H |
| 6 | # error "Please do not include this file directly." |
| 7 | #endif |
| 8 | |
| 9 | typedef struct { |
| 10 | int lock; |
| 11 | } arch_spinlock_t; |
| 12 | |
| 13 | #define __ARCH_SPIN_LOCK_UNLOCKED { .lock = 0, } |
| 14 | |
| 15 | typedef struct { |
| 16 | int cnts; |
| 17 | arch_spinlock_t wait; |
| 18 | } arch_rwlock_t; |
| 19 | |
| 20 | #define __ARCH_RW_LOCK_UNLOCKED { 0 } |
| 21 | |
| 22 | #endif |