diff options
Diffstat (limited to 'include/linux')
-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 23fd8909b9e5..54fa2fa2c8e4 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -113,6 +113,14 @@ extern struct group_info init_groups; | |||
113 | # define CAP_INIT_BSET CAP_INIT_EFF_SET | 113 | # define CAP_INIT_BSET CAP_INIT_EFF_SET |
114 | #endif | 114 | #endif |
115 | 115 | ||
116 | #ifdef CONFIG_PERF_COUNTERS | ||
117 | # define INIT_PERF_COUNTERS(tsk) \ | ||
118 | .perf_counter_ctx.counter_list = \ | ||
119 | LIST_HEAD_INIT(tsk.perf_counter_ctx.counter_list), | ||
120 | #else | ||
121 | # define INIT_PERF_COUNTERS(tsk) | ||
122 | #endif | ||
123 | |||
116 | /* | 124 | /* |
117 | * INIT_TASK is used to set up the first task table, touch at | 125 | * INIT_TASK is used to set up the first task table, touch at |
118 | * your own risk!. Base=0, limit=0x1fffff (=2MB) | 126 | * your own risk!. Base=0, limit=0x1fffff (=2MB) |
@@ -180,6 +188,7 @@ extern struct group_info init_groups; | |||
180 | INIT_IDS \ | 188 | INIT_IDS \ |
181 | INIT_TRACE_IRQFLAGS \ | 189 | INIT_TRACE_IRQFLAGS \ |
182 | INIT_LOCKDEP \ | 190 | INIT_LOCKDEP \ |
191 | INIT_PERF_COUNTERS(tsk) \ | ||
183 | } | 192 | } |
184 | 193 | ||
185 | 194 | ||