diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 1f8c06ce0fa6..6b281fae114a 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -83,6 +83,12 @@ extern struct group_info init_groups; | |||
83 | */ | 83 | */ |
84 | # define CAP_INIT_BSET CAP_FULL_SET | 84 | # define CAP_INIT_BSET CAP_FULL_SET |
85 | 85 | ||
86 | #ifdef CONFIG_RCU_BOOST | ||
87 | #define INIT_TASK_RCU_BOOST() \ | ||
88 | .rcu_boost_mutex = NULL, | ||
89 | #else | ||
90 | #define INIT_TASK_RCU_BOOST() | ||
91 | #endif | ||
86 | #ifdef CONFIG_TREE_PREEMPT_RCU | 92 | #ifdef CONFIG_TREE_PREEMPT_RCU |
87 | #define INIT_TASK_RCU_TREE_PREEMPT() \ | 93 | #define INIT_TASK_RCU_TREE_PREEMPT() \ |
88 | .rcu_blocked_node = NULL, | 94 | .rcu_blocked_node = NULL, |
@@ -94,7 +100,8 @@ extern struct group_info init_groups; | |||
94 | .rcu_read_lock_nesting = 0, \ | 100 | .rcu_read_lock_nesting = 0, \ |
95 | .rcu_read_unlock_special = 0, \ | 101 | .rcu_read_unlock_special = 0, \ |
96 | .rcu_node_entry = LIST_HEAD_INIT(tsk.rcu_node_entry), \ | 102 | .rcu_node_entry = LIST_HEAD_INIT(tsk.rcu_node_entry), \ |
97 | INIT_TASK_RCU_TREE_PREEMPT() | 103 | INIT_TASK_RCU_TREE_PREEMPT() \ |
104 | INIT_TASK_RCU_BOOST() | ||
98 | #else | 105 | #else |
99 | #define INIT_TASK_RCU_PREEMPT(tsk) | 106 | #define INIT_TASK_RCU_PREEMPT(tsk) |
100 | #endif | 107 | #endif |