x86, nmi: Wire up NMI handlers to new routines
authorDon Zickus <dzickus@redhat.com>
Fri, 30 Sep 2011 19:06:21 +0000 (15:06 -0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 10 Oct 2011 04:56:57 +0000 (06:56 +0200)
commit9c48f1c629ecfa114850c03f875c6691003214de
tree5e454da487c90fc8399ce366aa2437597c9ff5e5
parentc9126b2ee8adb9235941cedbf558d39a9e65642d
x86, nmi: Wire up NMI handlers to new routines

Just convert all the files that have an nmi handler to the new routines.
Most of it is straight forward conversion.  A couple of places needed some
tweaking like kgdb which separates the debug notifier from the nmi handler
and mce removes a call to notify_die.

[Thanks to Ying for finding out the history behind that mce call

https://lkml.org/lkml/2010/5/27/114

And Boris responding that he would like to remove that call because of it

https://lkml.org/lkml/2011/9/21/163]

The things that get converted are the registeration/unregistration routines
and the nmi handler itself has its args changed along with code removal
to check which list it is on (most are on one NMI list except for kgdb
which has both an NMI routine and an NMI Unknown routine).

Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Corey Minyard <minyard@acm.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Corey Minyard <minyard@acm.org>
Cc: Jack Steiner <steiner@sgi.com>
Link: http://lkml.kernel.org/r/1317409584-23662-4-git-send-email-dzickus@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 files changed:
arch/x86/include/asm/nmi.h
arch/x86/include/asm/reboot.h
arch/x86/kernel/apic/hw_nmi.c
arch/x86/kernel/apic/x2apic_uv_x.c
arch/x86/kernel/cpu/mcheck/mce-inject.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/crash.c
arch/x86/kernel/kgdb.c
arch/x86/kernel/nmi.c
arch/x86/kernel/reboot.c
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/nmi_timer_int.c
drivers/acpi/apei/ghes.c
drivers/char/ipmi/ipmi_watchdog.c
drivers/watchdog/hpwdt.c