diff options
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; |
