aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-21 09:07:49 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-23 06:45:18 -0500
commit78b6084c907cea15bb40a564b974e072f5163781 (patch)
treee84678c43b0a921d2c21ba1f0759931d1038537f /include/linux/init_task.h
parenteef6cbf5844c620d9db9be99e4908cdf92492fb9 (diff)
perfcounters: fix init context lock
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r--include/linux/init_task.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 54fa2fa2c8e4..467cff545c30 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -116,7 +116,9 @@ extern struct group_info init_groups;
116#ifdef CONFIG_PERF_COUNTERS 116#ifdef CONFIG_PERF_COUNTERS
117# define INIT_PERF_COUNTERS(tsk) \ 117# define INIT_PERF_COUNTERS(tsk) \
118 .perf_counter_ctx.counter_list = \ 118 .perf_counter_ctx.counter_list = \
119 LIST_HEAD_INIT(tsk.perf_counter_ctx.counter_list), 119 LIST_HEAD_INIT(tsk.perf_counter_ctx.counter_list), \
120 .perf_counter_ctx.lock = \
121 __SPIN_LOCK_UNLOCKED(tsk.perf_counter_ctx.lock),
120#else 122#else
121# define INIT_PERF_COUNTERS(tsk) 123# define INIT_PERF_COUNTERS(tsk)
122#endif 124#endif