aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/rtmutex_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/rtmutex_common.h')
-rw-r--r--kernel/locking/rtmutex_common.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/locking/rtmutex_common.h b/kernel/locking/rtmutex_common.h
index 8d039b928d61..7453be0485a5 100644
--- a/kernel/locking/rtmutex_common.h
+++ b/kernel/locking/rtmutex_common.h
@@ -45,7 +45,7 @@ struct rt_mutex_waiter {
45 45
46static inline int rt_mutex_has_waiters(struct rt_mutex *lock) 46static inline int rt_mutex_has_waiters(struct rt_mutex *lock)
47{ 47{
48 return !RB_EMPTY_ROOT(&lock->waiters); 48 return !RB_EMPTY_ROOT(&lock->waiters.rb_root);
49} 49}
50 50
51static inline struct rt_mutex_waiter * 51static inline struct rt_mutex_waiter *
@@ -53,8 +53,8 @@ rt_mutex_top_waiter(struct rt_mutex *lock)
53{ 53{
54 struct rt_mutex_waiter *w; 54 struct rt_mutex_waiter *w;
55 55
56 w = rb_entry(lock->waiters_leftmost, struct rt_mutex_waiter, 56 w = rb_entry(lock->waiters.rb_leftmost,
57 tree_entry); 57 struct rt_mutex_waiter, tree_entry);
58 BUG_ON(w->lock != lock); 58 BUG_ON(w->lock != lock);
59 59
60 return w; 60 return w;
@@ -62,14 +62,14 @@ rt_mutex_top_waiter(struct rt_mutex *lock)
62 62
63static inline int task_has_pi_waiters(struct task_struct *p) 63static inline int task_has_pi_waiters(struct task_struct *p)
64{ 64{
65 return !RB_EMPTY_ROOT(&p->pi_waiters); 65 return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
66} 66}
67 67
68static inline struct rt_mutex_waiter * 68static inline struct rt_mutex_waiter *
69task_top_pi_waiter(struct task_struct *p) 69task_top_pi_waiter(struct task_struct *p)
70{ 70{
71 return rb_entry(p->pi_waiters_leftmost, struct rt_mutex_waiter, 71 return rb_entry(p->pi_waiters.rb_leftmost,
72 pi_tree_entry); 72 struct rt_mutex_waiter, pi_tree_entry);
73} 73}
74 74
75#else 75#else