diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-06-27 05:54:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:47 -0400 |
commit | 23f78d4a03c53cbd75d87a795378ea540aa08c86 (patch) | |
tree | 27dfe06337990911380fe8c5949ae9acd8e9568a /include/linux/sched.h | |
parent | b29739f902ee76a05493fb7d2303490fc75364f4 (diff) |
[PATCH] pi-futex: rt mutex core
Core functions for the rt-mutex subsystem.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 6f167645e7e2..6ea23c9af413 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -73,6 +73,7 @@ struct sched_param { | |||
73 | #include <linux/seccomp.h> | 73 | #include <linux/seccomp.h> |
74 | #include <linux/rcupdate.h> | 74 | #include <linux/rcupdate.h> |
75 | #include <linux/futex.h> | 75 | #include <linux/futex.h> |
76 | #include <linux/rtmutex.h> | ||
76 | 77 | ||
77 | #include <linux/time.h> | 78 | #include <linux/time.h> |
78 | #include <linux/param.h> | 79 | #include <linux/param.h> |
@@ -858,6 +859,17 @@ struct task_struct { | |||
858 | /* Protection of the PI data structures: */ | 859 | /* Protection of the PI data structures: */ |
859 | spinlock_t pi_lock; | 860 | spinlock_t pi_lock; |
860 | 861 | ||
862 | #ifdef CONFIG_RT_MUTEXES | ||
863 | /* PI waiters blocked on a rt_mutex held by this task */ | ||
864 | struct plist_head pi_waiters; | ||
865 | /* Deadlock detection and priority inheritance handling */ | ||
866 | struct rt_mutex_waiter *pi_blocked_on; | ||
867 | # ifdef CONFIG_DEBUG_RT_MUTEXES | ||
868 | spinlock_t held_list_lock; | ||
869 | struct list_head held_list_head; | ||
870 | # endif | ||
871 | #endif | ||
872 | |||
861 | #ifdef CONFIG_DEBUG_MUTEXES | 873 | #ifdef CONFIG_DEBUG_MUTEXES |
862 | /* mutex deadlock detection */ | 874 | /* mutex deadlock detection */ |
863 | struct mutex_waiter *blocked_on; | 875 | struct mutex_waiter *blocked_on; |