perf_event: x86: Optimize x86_pmu_disable()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 25 Jan 2010 10:57:25 +0000 (11:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Jan 2010 08:01:43 +0000 (09:01 +0100)
commit6c9687abeb24d5b7aae7db5be070c2139ad29e29
tree7f51feb24627f1b8e81805aab9c727bbff92c2bd
parentc933c1a603d5bf700ddce79216c1be0ec3bc0e6c
perf_event: x86: Optimize x86_pmu_disable()

x86_pmu_disable() removes the event from the cpuc->event_list[], however
since an event can only be on that list once, stop looking after we found
it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c