aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/mutex-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/mutex-debug.h')
-rw-r--r--kernel/locking/mutex-debug.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/locking/mutex-debug.h b/kernel/locking/mutex-debug.h
index a459faa48987..4174417d5309 100644
--- a/kernel/locking/mutex-debug.h
+++ b/kernel/locking/mutex-debug.h
@@ -26,20 +26,3 @@ extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter,
26extern void debug_mutex_unlock(struct mutex *lock); 26extern void debug_mutex_unlock(struct mutex *lock);
27extern void debug_mutex_init(struct mutex *lock, const char *name, 27extern void debug_mutex_init(struct mutex *lock, const char *name,
28 struct lock_class_key *key); 28 struct lock_class_key *key);
29
30#define spin_lock_mutex(lock, flags) \
31 do { \
32 struct mutex *l = container_of(lock, struct mutex, wait_lock); \
33 \
34 DEBUG_LOCKS_WARN_ON(in_interrupt()); \
35 local_irq_save(flags); \
36 arch_spin_lock(&(lock)->rlock.raw_lock);\
37 DEBUG_LOCKS_WARN_ON(l->magic != l); \
38 } while (0)
39
40#define spin_unlock_mutex(lock, flags) \
41 do { \
42 arch_spin_unlock(&(lock)->rlock.raw_lock); \
43 local_irq_restore(flags); \
44 preempt_check_resched(); \
45 } while (0)