Messages in this thread Patch in this message | | | Date | Sat, 23 May 2009 18:28:59 +0200 | From | Peter Zijlstra <> | Subject | [PATCH 5/7] perf_counter: simplify context cleanup |
| |
Use perf_counter_remove_from_context() to remove counters from the context.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> --- kernel/perf_counter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Index: linux-2.6/kernel/perf_counter.c =================================================================== --- linux-2.6.orig/kernel/perf_counter.c +++ linux-2.6/kernel/perf_counter.c @@ -3416,10 +3416,7 @@ __perf_counter_exit_task(struct task_str struct perf_counter *parent_counter; update_counter_times(child_counter); - - spin_lock_irq(&child_ctx->lock); - list_del_counter(child_counter, child_ctx); - spin_unlock_irq(&child_ctx->lock); + perf_counter_remove_from_context(child_counter); parent_counter = child_counter->parent; /* --
| |