perf: Optimize the perf_output() path by removing IRQ-disables
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 18 May 2010 08:50:41 +0000 (10:50 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 May 2010 16:35:48 +0000 (18:35 +0200)
commitef60777c9abd999db5eb4e338aae3eb593ae8e10
tree2dee468a922ebea2241d1c1ec10e581d62bf2db6
parentc7920614cebbf269a7c8397ff959a8dcf727465c
perf: Optimize the perf_output() path by removing IRQ-disables

Since we can now assume there is only a single writer
to each buffer, we can remove per-cpu lock thingy and
use a simply nest-count to the same effect.

This removes the need to disable IRQs.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c