You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
357 B
20 lines
357 B
#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
|
|
|