0001 #ifndef __LINUX_SPINLOCK_TYPES_UP_H
0002 #define __LINUX_SPINLOCK_TYPES_UP_H
0003
0004 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
0005 # error "please don't include this file directly"
0006 #endif
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifdef CONFIG_DEBUG_SPINLOCK
0016
0017 typedef struct {
0018 volatile unsigned int slock;
0019 } arch_spinlock_t;
0020
0021 #define __ARCH_SPIN_LOCK_UNLOCKED { 1 }
0022
0023 #else
0024
0025 typedef struct { } arch_spinlock_t;
0026
0027 #define __ARCH_SPIN_LOCK_UNLOCKED { }
0028
0029 #endif
0030
0031 typedef struct {
0032
0033 } arch_rwlock_t;
0034
0035 #define __ARCH_RW_LOCK_UNLOCKED { }
0036
0037 #endif