Back to home page

OSCL-LXR

 
 

    


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  * include/linux/spinlock_types_up.h - spinlock type definitions for UP
0010  *
0011  * portions Copyright 2005, Red Hat, Inc., Ingo Molnar
0012  * Released under the General Public License (GPL).
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     /* no debug version on UP */
0033 } arch_rwlock_t;
0034 
0035 #define __ARCH_RW_LOCK_UNLOCKED { }
0036 
0037 #endif /* __LINUX_SPINLOCK_TYPES_UP_H */