License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / m32r / include / asm / spinlock_types.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
fb1c8f93
IM
2#ifndef _ASM_M32R_SPINLOCK_TYPES_H
3#define _ASM_M32R_SPINLOCK_TYPES_H
4
5#ifndef __LINUX_SPINLOCK_TYPES_H
6# error "please don't include this file directly"
7#endif
8
9typedef struct {
10 volatile int slock;
445c8951 11} arch_spinlock_t;
fb1c8f93 12
edc35bd7 13#define __ARCH_SPIN_LOCK_UNLOCKED { 1 }
fb1c8f93
IM
14
15typedef struct {
16 volatile int lock;
fb3a6bbc 17} arch_rwlock_t;
fb1c8f93
IM
18
19#define RW_LOCK_BIAS 0x01000000
20#define RW_LOCK_BIAS_STR "0x01000000"
21
fb3a6bbc 22#define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
fb1c8f93 23
fabb626a 24#endif /* _ASM_M32R_SPINLOCK_TYPES_H */