diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a99d735db3d..48c409c279d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1233,6 +1233,9 @@ struct task_struct { | |||
1233 | #ifdef CONFIG_TREE_PREEMPT_RCU | 1233 | #ifdef CONFIG_TREE_PREEMPT_RCU |
1234 | struct rcu_node *rcu_blocked_node; | 1234 | struct rcu_node *rcu_blocked_node; |
1235 | #endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */ | 1235 | #endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */ |
1236 | #ifdef CONFIG_RCU_BOOST | ||
1237 | struct rt_mutex *rcu_boost_mutex; | ||
1238 | #endif /* #ifdef CONFIG_RCU_BOOST */ | ||
1236 | 1239 | ||
1237 | #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) | 1240 | #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) |
1238 | struct sched_info sched_info; | 1241 | struct sched_info sched_info; |
@@ -1763,7 +1766,8 @@ extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t * | |||
1763 | #ifdef CONFIG_PREEMPT_RCU | 1766 | #ifdef CONFIG_PREEMPT_RCU |
1764 | 1767 | ||
1765 | #define RCU_READ_UNLOCK_BLOCKED (1 << 0) /* blocked while in RCU read-side. */ | 1768 | #define RCU_READ_UNLOCK_BLOCKED (1 << 0) /* blocked while in RCU read-side. */ |
1766 | #define RCU_READ_UNLOCK_NEED_QS (1 << 1) /* RCU core needs CPU response. */ | 1769 | #define RCU_READ_UNLOCK_BOOSTED (1 << 1) /* boosted while in RCU read-side. */ |
1770 | #define RCU_READ_UNLOCK_NEED_QS (1 << 2) /* RCU core needs CPU response. */ | ||
1767 | 1771 | ||
1768 | static inline void rcu_copy_process(struct task_struct *p) | 1772 | static inline void rcu_copy_process(struct task_struct *p) |
1769 | { | 1773 | { |
@@ -1771,7 +1775,10 @@ static inline void rcu_copy_process(struct task_struct *p) | |||
1771 | p->rcu_read_unlock_special = 0; | 1775 | p->rcu_read_unlock_special = 0; |
1772 | #ifdef CONFIG_TREE_PREEMPT_RCU | 1776 | #ifdef CONFIG_TREE_PREEMPT_RCU |
1773 | p->rcu_blocked_node = NULL; | 1777 | p->rcu_blocked_node = NULL; |
1774 | #endif | 1778 | #endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */ |
1779 | #ifdef CONFIG_RCU_BOOST | ||
1780 | p->rcu_boost_mutex = NULL; | ||
1781 | #endif /* #ifdef CONFIG_RCU_BOOST */ | ||
1775 | INIT_LIST_HEAD(&p->rcu_node_entry); | 1782 | INIT_LIST_HEAD(&p->rcu_node_entry); |
1776 | } | 1783 | } |
1777 | 1784 | ||