Blame view
include/linux/spinlock_types_up.h
726 Bytes
fb1c8f93d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#ifndef __LINUX_SPINLOCK_TYPES_UP_H #define __LINUX_SPINLOCK_TYPES_UP_H #ifndef __LINUX_SPINLOCK_TYPES_H # error "please don't include this file directly" #endif /* * include/linux/spinlock_types_up.h - spinlock type definitions for UP * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar * Released under the General Public License (GPL). */ |
21f8ca3bf
|
14 |
#ifdef CONFIG_DEBUG_SPINLOCK |
fb1c8f93d
|
15 16 17 |
typedef struct { volatile unsigned int slock; |
445c89514
|
18 |
} arch_spinlock_t; |
fb1c8f93d
|
19 |
|
edc35bd72
|
20 |
#define __ARCH_SPIN_LOCK_UNLOCKED { 1 } |
fb1c8f93d
|
21 22 |
#else |
445c89514
|
23 |
typedef struct { } arch_spinlock_t; |
fb1c8f93d
|
24 |
|
edc35bd72
|
25 |
#define __ARCH_SPIN_LOCK_UNLOCKED { } |
fb1c8f93d
|
26 27 |
#endif |
fb1c8f93d
|
28 29 |
typedef struct { /* no debug version on UP */ |
fb3a6bbc9
|
30 |
} arch_rwlock_t; |
fb1c8f93d
|
31 |
|
fb3a6bbc9
|
32 |
#define __ARCH_RW_LOCK_UNLOCKED { } |
fb1c8f93d
|
33 34 |
#endif /* __LINUX_SPINLOCK_TYPES_UP_H */ |