perf: Optimize perf_disable
commit32975a4f114be52286f9a5bf6c230dbb8c0e1903
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 18:49:19 +0000 (6 19:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:22:25 +0000 (10 13:22 +0100)
treea5259dd7fb4cab05c837bace8a735a439bafc904
parent3f6da3905398826d85731247e7fbcf53400c18bd
perf: Optimize perf_disable

Currently we always call hw_perf_disable(), even if its already disabled,
this seems superflous, esp. since it cannot be made NMI safe (see further
patches).

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c