aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 688086bb7144..84451c0debba 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -2562,6 +2562,9 @@ static void perf_event_context_sched_out(struct task_struct *task, int ctxn,
2562 next->perf_event_ctxp[ctxn] = ctx; 2562 next->perf_event_ctxp[ctxn] = ctx;
2563 ctx->task = next; 2563 ctx->task = next;
2564 next_ctx->task = task; 2564 next_ctx->task = task;
2565
2566 swap(ctx->task_ctx_data, next_ctx->task_ctx_data);
2567
2565 do_switch = 0; 2568 do_switch = 0;
2566 2569
2567 perf_event_sync_stat(ctx, next_ctx); 2570 perf_event_sync_stat(ctx, next_ctx);