Linux 4.16-rc2
[linux-2.6-block.git] / arch / metag / include / asm / spinlock_types.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
6006c0d8
JH
2#ifndef _ASM_METAG_SPINLOCK_TYPES_H
3#define _ASM_METAG_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 unsigned int lock;
11} arch_spinlock_t;
12
13#define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
14
15typedef struct {
16 volatile unsigned int lock;
17} arch_rwlock_t;
18
19#define __ARCH_RW_LOCK_UNLOCKED { 0 }
20
21#endif /* _ASM_METAG_SPINLOCK_TYPES_H */