perf, x86: Fix PEBS enable/disable vs cpuc->enabled
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 12:47:07 +0000 (13:47 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:36 +0000 (13:23 +0100)
commit4807e3d5dc7bb7057dd6ca3abb09f3da2eb8c323
tree408ad33e37e9c0c75e3d8084e6f995d3ba91c342
parent8f4aebd2be9892bf8fb79a2d8576d3f3ee7f00f6
perf, x86: Fix PEBS enable/disable vs cpuc->enabled

We should never call ->enable with the pmu enabled, and we _can_ have
->disable called with the pmu enabled.

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