]> git.baikalelectronics.ru Git - kernel.git/commit
perf_events: Fix BTS interrupt handling to avoid being dazed by NMI (v2)
authorStephane Eranian <eranian@google.com>
Fri, 10 Sep 2010 11:28:01 +0000 (13:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Sep 2010 06:43:40 +0000 (08:43 +0200)
commitc25dd4626c57c5a908b2f613a9d4b2587181f18f
tree234042daa4a5761a2db5729a440af30527d06111
parent71380214fc1d50380095222536876807da8adbcf
perf_events: Fix BTS interrupt handling to avoid being dazed by NMI (v2)

Fix a bug introduced with commit 906af3c and the change in the
meaning of the return value of intel_pmu_handle_irq(). With the
current code, when you are using the BTS, you get 'dazed by NMI'
each time the BTS buffer fills up.

BTS does interrupt on the PMU vector, thus NMI. You need to take
this into account in the return value of the function.

This version fixes initial patch which was missing changes to
perf_event_intel_ds.c.

Signed-off-by: Stephane Eranian <eranian@google.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Cc: peterz@infradead.org
Cc: paulus@samba.org
Cc: davem@davemloft.net
Cc: fweisbec@gmail.com
Cc: perfmon2-devel@lists.sf.net
Cc: eranian@gmail.com
Cc: robert.richter@amd.com
LKML-Reference: <4c8a1686.aae9d80a.5aa4.5e35@mx.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_ds.c