OSDN Git Service

Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[uclinux-h8/linux.git] / kernel / locking / rwsem.h
1 #ifdef CONFIG_RWSEM_SPIN_ON_OWNER
2 static inline void rwsem_set_owner(struct rw_semaphore *sem)
3 {
4         sem->owner = current;
5 }
6
7 static inline void rwsem_clear_owner(struct rw_semaphore *sem)
8 {
9         sem->owner = NULL;
10 }
11
12 #else
13 static inline void rwsem_set_owner(struct rw_semaphore *sem)
14 {
15 }
16
17 static inline void rwsem_clear_owner(struct rw_semaphore *sem)
18 {
19 }
20 #endif