Disable watchdog in dump_registers

Avoids triggering watchdog if serial port output is slow.

Signed-off-by: Andrew Lyon <andrew.lyon@gmail.com>
This commit is contained in:
Keir Fraser committed 2009-12-14 07:57:23 +00:00
1 parent bbe624405f
commit beba190a01
1 file changed
+2
+2
View File
@@ -87,6 +87,7 @@ static void dump_registers(unsigned char key, struct cpu_user_regs *regs)
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 @@ static void dump_registers(unsigned char key, struct cpu_user_regs *regs)
printk("\n");
console_end_sync();
watchdog_enable();
}
static struct keyhandler dump_registers_keyhandler = {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.