perf_events: Optimize perf_event_task_tick()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 28 Jan 2010 12:57:44 +0000 (13:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Feb 2010 08:59:49 +0000 (09:59 +0100)
commit9717e6cd3db22eade7dbae0fc9235c66325a7132
tree7227e92b67e91d6b7b8270e397cdf9e1e245a789
parentf24bb999d2b9f2950e5cac5b69bffedf73c24ea4
perf_events: Optimize perf_event_task_tick()

Pretty much all of the calls do perf_disable/perf_enable cycles, pull
that out to cut back on hardware programming.

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>
kernel/perf_event.c