diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 7fc01b13be43..971a968831bf 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -94,6 +94,20 @@ extern struct group_info init_groups; | |||
94 | # define CAP_INIT_BSET CAP_INIT_EFF_SET | 94 | # define CAP_INIT_BSET CAP_INIT_EFF_SET |
95 | #endif | 95 | #endif |
96 | 96 | ||
97 | #ifdef CONFIG_PREEMPT_RCU | ||
98 | #define INIT_TASK_RCU_PREEMPT(tsk) \ | ||
99 | .rcu_read_lock_nesting = 0, \ | ||
100 | .rcu_flipctr_idx = 0, | ||
101 | #elif defined(CONFIG_TREE_PREEMPT_RCU) | ||
102 | #define INIT_TASK_RCU_PREEMPT(tsk) \ | ||
103 | .rcu_read_lock_nesting = 0, \ | ||
104 | .rcu_read_unlock_special = 0, \ | ||
105 | .rcu_blocked_cpu = -1, \ | ||
106 | .rcu_node_entry = LIST_HEAD_INIT(tsk.rcu_node_entry), | ||
107 | #else | ||
108 | #define INIT_TASK_RCU_PREEMPT(tsk) | ||
109 | #endif | ||
110 | |||
97 | extern struct cred init_cred; | 111 | extern struct cred init_cred; |
98 | 112 | ||
99 | #ifdef CONFIG_PERF_COUNTERS | 113 | #ifdef CONFIG_PERF_COUNTERS |
@@ -173,6 +187,7 @@ extern struct cred init_cred; | |||
173 | INIT_LOCKDEP \ | 187 | INIT_LOCKDEP \ |
174 | INIT_FTRACE_GRAPH \ | 188 | INIT_FTRACE_GRAPH \ |
175 | INIT_TRACE_RECURSION \ | 189 | INIT_TRACE_RECURSION \ |
190 | INIT_TASK_RCU_PREEMPT(tsk) \ | ||
176 | } | 191 | } |
177 | 192 | ||
178 | 193 | ||