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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index eb346048f00f..616c52426b32 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -1004,6 +1004,10 @@ static void __perf_counter_task_sched_out(struct perf_counter_context *ctx)
1004 1004
1005 if (!cpuctx->task_ctx) 1005 if (!cpuctx->task_ctx)
1006 return; 1006 return;
1007
1008 if (WARN_ON_ONCE(ctx != cpuctx->task_ctx))
1009 return;
1010
1007 __perf_counter_sched_out(ctx, cpuctx); 1011 __perf_counter_sched_out(ctx, cpuctx);
1008 cpuctx->task_ctx = NULL; 1012 cpuctx->task_ctx = NULL;
1009} 1013}