perf/x86/intel: Move NMI clearing to end of PMI handler
authorAndi Kleen <ak@linux.intel.com>
Tue, 18 Jun 2013 00:36:50 +0000 (17:36 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Jun 2013 12:43:34 +0000 (14:43 +0200)
commit72db55964695dcd4aa15950f3b2fb7c09ad79829
tree907d805def5b801550974a00c8e63abfbc18dd14
parent3044318f1f3a2a0a636b4c751ddb7169cb1b11b2
perf/x86/intel: Move NMI clearing to end of PMI handler

This avoids some problems with spurious PMIs on Haswell.
Haswell seems to behave more like P4 in this regard. Do
the same thing as the P4 perf handler by unmasking
the NMI only at the end. Shouldn't make any difference
for earlier family 6 cores.

(Tested on Haswell, IvyBridge, Westmere, Saltwell (Atom).)

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Andi Kleen <ak@linux.jf.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/1371515812-9646-5-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c
This page took 0.044587 seconds and 5 git commands to generate.