Skip to contentSkip to conversation

Disable watchdog in dump_registers

PATCH New Andrew Lyon 1 participant 1 message Dec 12, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Disable watchdog in dump_registers

Add watchdog_disable/watchdog_enable around dump_registers to avoid trigging watchdog if serial port output is slow.

Patch generated for xen-unstable but it will also apply to 3.4.2.

xen/common/keyhandler.c Sat Dec 12 14:03:17 2009 +0000 renamed from xen/common/keyhandler.c Fri Dec 11 09:17:09 2009 +0000 +2 -0
diff -r b928797213ac -r 12039f5ece78 xen/common/keyhandler.c
@@ -87,6 +87,7 @@
     unsigned int cpu;
 
     /* We want to get everything out that we possibly can. */
+    watchdog_disable();
     console_start_sync();
 
     printk("'%c' pressed -> dumping registers\n", key);
@@ -106,6 +107,7 @@
     printk("\n");
 
     console_end_sync();
+    watchdog_enable();
 }
 
 static struct keyhandler dump_registers_keyhandler = {