PI-futex: rt-mutex futex API
PATCH 9/10 PI-futex: rt-mutex futex API
From: Ingo Molnar <[email protected]>
add proxy-locking rt-mutex functionality needed by pi-futexes.
Signed-off-by Ingo Molnar <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Arjan van de Ven <[email protected]>
----
include/linux/rtmutex_internal.h | 8 +++++ kernel/rtmutex.c | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+)
include/linux/rtmutex_internal.h +8 -0
@@ -176,4 +176,12 @@ static inline void mark_rt_mutex_waiters#endif +/* +* PI-futex support (proxy locking functions, etc.): +*/ +extern struct task_struct *rt_mutex_next_owner (struct rt_mutex *lock); +extern void rt_mutex_init_proxy_locked (struct rt_mutex *lock, +struct task_struct *proxy_owner); +extern void rt_mutex_proxy_unlock (struct rt_mutex *lock, +struct task_struct *proxy_owner);#endif
kernel/rtmutex.c +55 -0
58 lines not on this page · raw message