mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
perfcounters: fix init context lock
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
eef6cbf584
commit
78b6084c90
1 changed files with 3 additions and 1 deletions
|
@ -116,7 +116,9 @@ extern struct group_info init_groups;
|
||||||
#ifdef CONFIG_PERF_COUNTERS
|
#ifdef CONFIG_PERF_COUNTERS
|
||||||
# define INIT_PERF_COUNTERS(tsk) \
|
# define INIT_PERF_COUNTERS(tsk) \
|
||||||
.perf_counter_ctx.counter_list = \
|
.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
|
#else
|
||||||
# define INIT_PERF_COUNTERS(tsk)
|
# define INIT_PERF_COUNTERS(tsk)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue