diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 2bb4c4f3531a..dffd9258ee60 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -117,6 +117,14 @@ extern struct group_info init_groups; | |||
117 | #else | 117 | #else |
118 | #define INIT_TASK_RCU_PREEMPT(tsk) | 118 | #define INIT_TASK_RCU_PREEMPT(tsk) |
119 | #endif | 119 | #endif |
120 | #ifdef CONFIG_TASKS_RCU | ||
121 | #define INIT_TASK_RCU_TASKS(tsk) \ | ||
122 | .rcu_tasks_holdout = false, \ | ||
123 | .rcu_tasks_holdout_list = \ | ||
124 | LIST_HEAD_INIT(tsk.rcu_tasks_holdout_list), | ||
125 | #else | ||
126 | #define INIT_TASK_RCU_TASKS(tsk) | ||
127 | #endif | ||
120 | 128 | ||
121 | extern struct cred init_cred; | 129 | extern struct cred init_cred; |
122 | 130 | ||
@@ -224,6 +232,7 @@ extern struct task_group root_task_group; | |||
224 | INIT_FTRACE_GRAPH \ | 232 | INIT_FTRACE_GRAPH \ |
225 | INIT_TRACE_RECURSION \ | 233 | INIT_TRACE_RECURSION \ |
226 | INIT_TASK_RCU_PREEMPT(tsk) \ | 234 | INIT_TASK_RCU_PREEMPT(tsk) \ |
235 | INIT_TASK_RCU_TASKS(tsk) \ | ||
227 | INIT_CPUSET_SEQ(tsk) \ | 236 | INIT_CPUSET_SEQ(tsk) \ |
228 | INIT_RT_MUTEXES(tsk) \ | 237 | INIT_RT_MUTEXES(tsk) \ |
229 | INIT_VTIME(tsk) \ | 238 | INIT_VTIME(tsk) \ |