diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-21 15:07:49 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-23 12:45:18 +0100 |
commit | 78b6084c907cea15bb40a564b974e072f5163781 (patch) | |
tree | e84678c43b0a921d2c21ba1f0759931d1038537f /include/linux/init_task.h | |
parent | eef6cbf5844c620d9db9be99e4908cdf92492fb9 (diff) | |
download | kernel_samsung_smdk4412-78b6084c907cea15bb40a564b974e072f5163781.zip kernel_samsung_smdk4412-78b6084c907cea15bb40a564b974e072f5163781.tar.gz kernel_samsung_smdk4412-78b6084c907cea15bb40a564b974e072f5163781.tar.bz2 |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 54fa2fa..467cff5 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -116,7 +116,9 @@ extern struct group_info init_groups; #ifdef CONFIG_PERF_COUNTERS # define INIT_PERF_COUNTERS(tsk) \ .perf_counter_ctx.counter_list = \ - LIST_HEAD_INIT(tsk.perf_counter_ctx.counter_list), + LIST_HEAD_INIT(tsk.perf_counter_ctx.counter_list), \ + .perf_counter_ctx.lock = \ + __SPIN_LOCK_UNLOCKED(tsk.perf_counter_ctx.lock), #else # define INIT_PERF_COUNTERS(tsk) #endif |