perf, x86: Fix silly bug in intel_pmu_pebs_{enable,disable}
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 18:49:06 +0000 (19:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:38 +0000 (13:23 +0100)
commitad0e6cfe2a2a61d7b5530188e571d508146cb43b
treef225acbab7f61c0a0d710ac1740f6bcaa409fdb9
parent12ab854d744f04bfc5c6c4db723b7e31fc03eb29
perf, x86: Fix silly bug in intel_pmu_pebs_{enable,disable}

We need to use the actual cpuc->pebs_enabled value, not a local copy for
the changes to take effect.

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