perf, x86: Fix LBR enable/disable vs cpuc->enabled
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 12:48:54 +0000 (13:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:37 +0000 (13:23 +0100)
commit2df202bf7520eaffcbfb07e45dfa3cfb0aeee2c0
tree8fdc4c3c7df7662d71d52d384b2da87b393e1432
parent4807e3d5dc7bb7057dd6ca3abb09f3da2eb8c323
perf, x86: Fix LBR 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_lbr.c