Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
8a4a10ae KG |
2 | #ifndef _ASM_POWERPC_SPINLOCK_TYPES_H |
3 | #define _ASM_POWERPC_SPINLOCK_TYPES_H | |
fb1c8f93 IM |
4 | |
5 | #ifndef __LINUX_SPINLOCK_TYPES_H | |
6 | # error "please don't include this file directly" | |
7 | #endif | |
8 | ||
9 | typedef struct { | |
10 | volatile unsigned int slock; | |
445c8951 | 11 | } arch_spinlock_t; |
fb1c8f93 | 12 | |
edc35bd7 | 13 | #define __ARCH_SPIN_LOCK_UNLOCKED { 0 } |
fb1c8f93 IM |
14 | |
15 | typedef struct { | |
16 | volatile signed int lock; | |
fb3a6bbc | 17 | } arch_rwlock_t; |
fb1c8f93 | 18 | |
fb3a6bbc | 19 | #define __ARCH_RW_LOCK_UNLOCKED { 0 } |
fb1c8f93 IM |
20 | |
21 | #endif |