1 #ifndef _ASM_POWERPC_RWSEM_H
2 #define _ASM_POWERPC_RWSEM_H
5 #error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
20 # define RWSEM_ACTIVE_MASK 0xffffffffL
22 # define RWSEM_ACTIVE_MASK 0x0000ffffL
25 #define RWSEM_UNLOCKED_VALUE 0x00000000L
26 #define RWSEM_ACTIVE_BIAS 0x00000001L
27 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1)
28 #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
29 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
44 while ((tmp = sem->
count) >= 0) {