diff options
Diffstat (limited to 'arch/sh/include/asm/rwsem.h')
-rw-r--r-- | arch/sh/include/asm/rwsem.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/sh/include/asm/rwsem.h b/arch/sh/include/asm/rwsem.h index df6f34623c54..dffc62589f79 100644 --- a/arch/sh/include/asm/rwsem.h +++ b/arch/sh/include/asm/rwsem.h | |||
@@ -11,23 +11,13 @@ | |||
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #ifdef __KERNEL__ | 13 | #ifdef __KERNEL__ |
14 | /* | 14 | |
15 | * the semaphore definition | ||
16 | */ | ||
17 | struct rw_semaphore { | ||
18 | long count; | ||
19 | #define RWSEM_UNLOCKED_VALUE 0x00000000 | 15 | #define RWSEM_UNLOCKED_VALUE 0x00000000 |
20 | #define RWSEM_ACTIVE_BIAS 0x00000001 | 16 | #define RWSEM_ACTIVE_BIAS 0x00000001 |
21 | #define RWSEM_ACTIVE_MASK 0x0000ffff | 17 | #define RWSEM_ACTIVE_MASK 0x0000ffff |
22 | #define RWSEM_WAITING_BIAS (-0x00010000) | 18 | #define RWSEM_WAITING_BIAS (-0x00010000) |
23 | #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS | 19 | #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS |
24 | #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) | 20 | #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) |
25 | spinlock_t wait_lock; | ||
26 | struct list_head wait_list; | ||
27 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | ||
28 | struct lockdep_map dep_map; | ||
29 | #endif | ||
30 | }; | ||
31 | 21 | ||
32 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 22 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
33 | # define __RWSEM_DEP_MAP_INIT(lockname) , .dep_map = { .name = #lockname } | 23 | # define __RWSEM_DEP_MAP_INIT(lockname) , .dep_map = { .name = #lockname } |