Go to the documentation of this file.
30 static inline void mutex_set_owner(
struct mutex *lock)
35 static inline void mutex_clear_owner(
struct mutex *lock)
40 #define spin_lock_mutex(lock, flags) \
42 struct mutex *l = container_of(lock, struct mutex, wait_lock); \
44 DEBUG_LOCKS_WARN_ON(in_interrupt()); \
45 local_irq_save(flags); \
46 arch_spin_lock(&(lock)->rlock.raw_lock);\
47 DEBUG_LOCKS_WARN_ON(l->magic != l); \
50 #define spin_unlock_mutex(lock, flags) \
52 arch_spin_unlock(&(lock)->rlock.raw_lock); \
53 local_irq_restore(flags); \
54 preempt_check_resched(); \