]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb82dec521f8fe1ae2da03485e101e0f968aed619
tree907d805def5b801550974a00c8e63abfbc18dd14
parentd78f66b882f5d8bc3a020a96fcfc928a98700a1f
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