aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-09-09 15:01:59 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-09 15:07:09 -0400
commit4e231c7962ce711c7d8c2a4dc23ecd1e8fc28363 (patch)
tree05af30e5c2f1084d8e77c89f0e55beaafa2194c0 /kernel/perf_event.c
parent1b9a644fece117cfa5474a2388d6b89d1baf8ddf (diff)
perf: Fix up delayed_put_task_struct()
I missed a perf_event_ctxp user when converting it to an array. Pull this last user into perf_event.c as well and fix it up. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 9819a69a61a1..eaf1c5de6dcc 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -5893,6 +5893,14 @@ again:
5893 } 5893 }
5894} 5894}
5895 5895
5896void perf_event_delayed_put(struct task_struct *task)
5897{
5898 int ctxn;
5899
5900 for_each_task_context_nr(ctxn)
5901 WARN_ON_ONCE(task->perf_event_ctxp[ctxn]);
5902}
5903
5896/* 5904/*
5897 * inherit a event from parent task to child task: 5905 * inherit a event from parent task to child task:
5898 */ 5906 */