[PATCH 5/7] perf_counter: simplify context cleanup
From: Peter Zijlstra
Date: Sat May 23 2009 - 12:33:41 EST
Use perf_counter_remove_from_context() to remove counters from the context.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
---
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;
/*
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/