Merge tag 'gvt-fixes-2020-03-10' of https://github.com/intel/gvt-linux into drm-intel...
[linux-block.git] / arch / s390 / include / asm / spinlock_types.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
fb1c8f93
IM
2#ifndef __ASM_SPINLOCK_TYPES_H
3#define __ASM_SPINLOCK_TYPES_H
4
5#ifndef __LINUX_SPINLOCK_TYPES_H
6# error "please don't include this file directly"
7#endif
8
9typedef struct {
02c503ff 10 int lock;
445c8951 11} __attribute__ ((aligned (4))) arch_spinlock_t;
fb1c8f93 12
5b3f683e 13#define __ARCH_SPIN_LOCK_UNLOCKED { .lock = 0, }
fb1c8f93
IM
14
15typedef struct {
eb3b7b84
MS
16 int cnts;
17 arch_spinlock_t wait;
fb3a6bbc 18} arch_rwlock_t;
fb1c8f93 19
fb3a6bbc 20#define __ARCH_RW_LOCK_UNLOCKED { 0 }
fb1c8f93
IM
21
22#endif