Browse Source

[PATCH] serial console: touch NMI watchdog

Large console spews from IRQ or local_irq_disable() sections can cause the NMI
watchdog to go off.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andrew Morton 19 years ago
parent
commit
78512ece14
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/serial/8250.c

+ 3 - 0
drivers/serial/8250.c

@@ -40,6 +40,7 @@
 #include <linux/serial_core.h>
 #include <linux/serial_core.h>
 #include <linux/serial.h>
 #include <linux/serial.h>
 #include <linux/serial_8250.h>
 #include <linux/serial_8250.h>
+#include <linux/nmi.h>
 
 
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/irq.h>
@@ -2208,6 +2209,8 @@ serial8250_console_write(struct console *co, const char *s, unsigned int count)
 	unsigned int ier;
 	unsigned int ier;
 	int i;
 	int i;
 
 
+	touch_nmi_watchdog();
+
 	/*
 	/*
 	 *	First save the UER then disable the interrupts
 	 *	First save the UER then disable the interrupts
 	 */
 	 */