perf_event: x86: Deduplicate the disable code
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 25 Jan 2010 14:58:43 +0000 (15:58 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Jan 2010 08:01:45 +0000 (09:01 +0100)
commit2e8418736dff9c6fdadb2f87dcc2087cebf32167
tree983d0a5dad6e879d168fbeca457b104c27e0c775
parent184f412c3341cd24fbd26604634a5800b83dbdc3
perf_event: x86: Deduplicate the disable code

Share the meat of the x86_pmu_disable() code with hw_perf_enable().

Also remove the barrier() from that code, since I could not convince
myself we actually need 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