perf_counter: Clean up task_ctx vs interrupts
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 29 May 2009 12:51:57 +0000 (14:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 May 2009 14:21:51 +0000 (16:21 +0200)
commit665c2142a94202881a3c11cbaee6506cb10ada2d
tree14a518bf3afe81e7300a822e9b6f55980ff89d46
parentefb3d17240d80e27508d238809168120fe4b93a4
perf_counter: Clean up task_ctx vs interrupts

Remove the local_irq_save() etc.. in routines that are smp function
calls, or have IRQs disabled by other means.

Then change the COMM, MMAP, and swcounter context iteration to
current->perf_counter_ctxp and RCU, since it really doesn't matter
which context they iterate, they're all folded.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c