Browse Source

[PATCH] x86_64 show_stack(): call touch_nmi_watchdog

I had strange NMI watchdog timeouts running sysrq-T across 9600-baud serial.


Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
akpm@osdl.org 20 năm trước cách đây
mục cha
commit
35faa71484
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      arch/x86_64/kernel/traps.c

+ 2 - 0
arch/x86_64/kernel/traps.c

@@ -28,6 +28,7 @@
 #include <linux/interrupt.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/moduleparam.h>
+#include <linux/nmi.h>
 
 
 #include <asm/system.h>
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
@@ -243,6 +244,7 @@ void show_stack(struct task_struct *tsk, unsigned long * rsp)
 		if (i && ((i % 4) == 0))
 		if (i && ((i % 4) == 0))
 			printk("\n       ");
 			printk("\n       ");
 		printk("%016lx ", *stack++);
 		printk("%016lx ", *stack++);
+		touch_nmi_watchdog();
 	}
 	}
 	show_trace((unsigned long *)rsp);
 	show_trace((unsigned long *)rsp);
 }
 }