aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r--kernel/perf_counter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 070f92d3232a..367299f91aaf 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -3122,6 +3122,8 @@ perf_counter_alloc(struct perf_counter_hw_event *hw_event,
3122 counter->group_leader = group_leader; 3122 counter->group_leader = group_leader;
3123 counter->pmu = NULL; 3123 counter->pmu = NULL;
3124 counter->ctx = ctx; 3124 counter->ctx = ctx;
3125 counter->oncpu = -1;
3126
3125 get_ctx(ctx); 3127 get_ctx(ctx);
3126 3128
3127 counter->state = PERF_COUNTER_STATE_INACTIVE; 3129 counter->state = PERF_COUNTER_STATE_INACTIVE;