spinlock_types.h 362 字节
Newer Older
I
Ingo Molnar 已提交
1 2 3 4 5 6 7 8
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif

typedef struct {
9
	unsigned int slock;
I
Ingo Molnar 已提交
10 11 12 13 14
} raw_spinlock_t;

#define __RAW_SPIN_LOCK_UNLOCKED	{ 1 }

typedef struct {
15
	unsigned int lock;
I
Ingo Molnar 已提交
16 17 18 19 20
} raw_rwlock_t;

#define __RAW_RW_LOCK_UNLOCKED		{ RW_LOCK_BIAS }

#endif