Go to the documentation of this file.
6 #ifndef _ASM_SH_RWSEM_H
7 #define _ASM_SH_RWSEM_H
10 #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead"
15 #define RWSEM_UNLOCKED_VALUE 0x00000000
16 #define RWSEM_ACTIVE_BIAS 0x00000001
17 #define RWSEM_ACTIVE_MASK 0x0000ffff
18 #define RWSEM_WAITING_BIAS (-0x00010000)
19 #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
20 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
37 while ((tmp = sem->
count) >= 0) {