https://github.com/torvalds/linux
Raw File
Tip revision: 18558cae0272f8fd9647e69d3fec1565a7949865 authored by Linus Torvalds on 14 February 2016, 21:05:20 UTC
Linux 4.5-rc4
Tip revision: 18558ca
rwsem.h
#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
back to top