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.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/locking/mutex-debug.h b/kernel/locking/mutex-debug.h
index 57a871ae3c81..a459faa48987 100644
--- a/kernel/locking/mutex-debug.h
+++ b/kernel/locking/mutex-debug.h
@@ -27,16 +27,6 @@ extern 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 29
30static inline void mutex_set_owner(struct mutex *lock)
31{
32 WRITE_ONCE(lock->owner, current);
33}
34
35static inline void mutex_clear_owner(struct mutex *lock)
36{
37 WRITE_ONCE(lock->owner, NULL);
38}
39
40#define spin_lock_mutex(lock, flags) \ 30#define spin_lock_mutex(lock, flags) \
41 do { \ 31 do { \
42 struct mutex *l = container_of(lock, struct mutex, wait_lock); \ 32 struct mutex *l = container_of(lock, struct mutex, wait_lock); \