aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/nmi_32.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-24 11:36:31 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 16:32:50 -0400
commitddca03c98a7f7ad5ab09967ff52d4ed60358c896 (patch)
treed59a5c8ece8858a1436d88a10fd12e6c6cf564b2 /arch/x86/kernel/nmi_32.c
parent2e4db9d2c5db9c9dd3e1d1ec3263bc4a990ff8df (diff)
x86: nmi - unify die_nmi() interface
By slightly changing 32bit mode die_nmi() we may unify the interface and make it common for both (32/64bit) modes Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: hpa@zytor.com Cc: mingo@redhat.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/nmi_32.c')
-rw-r--r--arch/x86/kernel/nmi_32.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c
index 69bdae555c1..bd04a28f7a5 100644
--- a/arch/x86/kernel/nmi_32.c
+++ b/arch/x86/kernel/nmi_32.c
@@ -320,8 +320,6 @@ void touch_nmi_watchdog(void)
320} 320}
321EXPORT_SYMBOL(touch_nmi_watchdog); 321EXPORT_SYMBOL(touch_nmi_watchdog);
322 322
323extern void die_nmi(struct pt_regs *, const char *msg);
324
325notrace __kprobes int 323notrace __kprobes int
326nmi_watchdog_tick(struct pt_regs *regs, unsigned reason) 324nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
327{ 325{
@@ -375,7 +373,8 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
375 /* 373 /*
376 * die_nmi will return ONLY if NOTIFY_STOP happens.. 374 * die_nmi will return ONLY if NOTIFY_STOP happens..
377 */ 375 */
378 die_nmi(regs, "BUG: NMI Watchdog detected LOCKUP"); 376 die_nmi("BUG: NMI Watchdog detected LOCKUP",
377 regs, 0);
379 } else { 378 } else {
380 __get_cpu_var(last_irq_sum) = sum; 379 __get_cpu_var(last_irq_sum) = sum;
381 local_set(&__get_cpu_var(alert_counter), 0); 380 local_set(&__get_cpu_var(alert_counter), 0);
@@ -406,7 +405,7 @@ static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu)
406 char buf[64]; 405 char buf[64];
407 406
408 sprintf(buf, "NMI received for unknown reason %02x\n", reason); 407 sprintf(buf, "NMI received for unknown reason %02x\n", reason);
409 die_nmi(regs, buf); 408 die_nmi(buf, regs, 0);
410 return 0; 409 return 0;
411} 410}
412 411