summaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-21 15:13:59 +0200
committerIngo Molnar <mingo@elte.hu>2010-06-09 11:12:33 +0200
commit8ed92280be013180e24c84456ab6babcb07037cc (patch)
tree5b0826219599532cc1a17ed823bd2358a2bef666 /kernel/perf_event.c
parentecc55f84b2e9741f29daa787ded93986df6cbe17 (diff)
downloadop-kernel-dev-8ed92280be013180e24c84456ab6babcb07037cc.zip
op-kernel-dev-8ed92280be013180e24c84456ab6babcb07037cc.tar.gz
perf, trace: Remove superfluous rcu_read_lock()
__DO_TRACE() already calls the callbacks under rcu_read_lock_sched(), which is sufficient for our needs, avoid doing it again. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> 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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 4bd3b59..b39bec3 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -4613,12 +4613,10 @@ void perf_tp_event(u64 addr, u64 count, void *record, int entry_size,
perf_sample_data_init(&data, addr);
data.raw = &raw;
- rcu_read_lock();
hlist_for_each_entry_rcu(event, node, head, hlist_entry) {
if (perf_tp_event_match(event, &data, regs))
perf_swevent_add(event, count, 1, &data, regs);
}
- rcu_read_unlock();
perf_swevent_put_recursion_context(rctx);
}
OpenPOWER on IntegriCloud