rwsem.h 357 B

1234567891011121314151617181920
  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. static inline void rwsem_clear_owner(struct rw_semaphore *sem)
  7. {
  8. sem->owner = NULL;
  9. }
  10. #else
  11. static inline void rwsem_set_owner(struct rw_semaphore *sem)
  12. {
  13. }
  14. static inline void rwsem_clear_owner(struct rw_semaphore *sem)
  15. {
  16. }
  17. #endif