aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/nmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kernel/nmi.c')
-rw-r--r--arch/x86_64/kernel/nmi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/nmi.c b/arch/x86_64/kernel/nmi.c
index 5a35975e5763..1b76d1574529 100644
--- a/arch/x86_64/kernel/nmi.c
+++ b/arch/x86_64/kernel/nmi.c
@@ -695,7 +695,8 @@ int __kprobes nmi_watchdog_tick(struct pt_regs * regs, unsigned reason)
695 */ 695 */
696 local_inc(&__get_cpu_var(alert_counter)); 696 local_inc(&__get_cpu_var(alert_counter));
697 if (local_read(&__get_cpu_var(alert_counter)) == 5*nmi_hz) 697 if (local_read(&__get_cpu_var(alert_counter)) == 5*nmi_hz)
698 die_nmi("NMI Watchdog detected LOCKUP on CPU %d\n", regs); 698 die_nmi("NMI Watchdog detected LOCKUP on CPU %d\n", regs,
699 panic_on_timeout);
699 } else { 700 } else {
700 __get_cpu_var(last_irq_sum) = sum; 701 __get_cpu_var(last_irq_sum) = sum;
701 local_set(&__get_cpu_var(alert_counter), 0); 702 local_set(&__get_cpu_var(alert_counter), 0);
@@ -765,7 +766,7 @@ static int unknown_nmi_panic_callback(struct pt_regs *regs, int cpu)
765 char buf[64]; 766 char buf[64];
766 767
767 sprintf(buf, "NMI received for unknown reason %02x\n", reason); 768 sprintf(buf, "NMI received for unknown reason %02x\n", reason);
768 die_nmi(buf,regs); 769 die_nmi(buf, regs, 1); /* Always panic here */
769 return 0; 770 return 0;
770} 771}
771 772