lkml.org 
[lkml]   [2009]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
/*
--



\
 
 \ /
  Last update: 2009-05-23 18:37    [from the cache]
©2003-2011 Jasper Spaans