perf, nmi: Fix unknown NMI warning
authorMarkus Metzger <markus.t.metzger@intel.com>
Sat, 15 Feb 2014 00:44:08 +0000 (16:44 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 Feb 2014 21:09:01 +0000 (22:09 +0100)
commita3ef2229c94ff70998724cb64b9cb4c77db9e950
tree827839f2c4b9b4f7f8ff7a8533c3967e46cfc744
parent0e9f2204cfa6d79abe3e525ddf7c4ab5792cc751
perf, nmi: Fix unknown NMI warning

When using BTS on Core i7-4*, I get the below kernel warning.

$ perf record -c 1 -e branches:u ls
Message from syslogd@labpc1501 at Nov 11 15:49:25 ...
 kernel:[  438.317893] Uhhuh. NMI received for unknown reason 31 on CPU 2.

Message from syslogd@labpc1501 at Nov 11 15:49:25 ...
 kernel:[  438.317920] Do you have a strange power saving mode enabled?

Message from syslogd@labpc1501 at Nov 11 15:49:25 ...
 kernel:[  438.317945] Dazed and confused, but trying to continue

Make intel_pmu_handle_irq() take the full exit path when returning early.

Cc: eranian@google.com
Cc: peterz@infradead.org
Cc: mingo@kernel.org
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1392425048-5309-1-git-send-email-andi@firstfloor.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/perf_event_intel.c