mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
21 lines
357 B
C
21 lines
357 B
C
![]() |
#ifdef CONFIG_RWSEM_SPIN_ON_OWNER
|
||
|
static inline void rwsem_set_owner(struct rw_semaphore *sem)
|
||
|
{
|
||
|
sem->owner = current;
|
||
|
}
|
||
|
|
||
|
static inline void rwsem_clear_owner(struct rw_semaphore *sem)
|
||
|
{
|
||
|
sem->owner = NULL;
|
||
|
}
|
||
|
|
||
|
#else
|
||
|
static inline void rwsem_set_owner(struct rw_semaphore *sem)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
static inline void rwsem_clear_owner(struct rw_semaphore *sem)
|
||
|
{
|
||
|
}
|
||
|
#endif
|