perf, x86: Clear the LBRs on init
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 5 Mar 2010 12:49:35 +0000 (13:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:35 +0000 (13:23 +0100)
commit74846d35b24b6efd61bb88a0a750b6bb257e6e78
tree82b2a428ce246a1ceaf390077d38a618fd6e01cb
parent3c44780b220e876b01e39d4028cd6f4205fbf5d6
perf, x86: Clear the LBRs on init

Some CPUs have errata where the LBR is not cleared on Power-On. So always
clear the LBRs before use.

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: <20100305154128.966563424@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_lbr.c