mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1217 (421485a7z8JARjjC9F7b0rTr-A1WOw)
Ensure watchdog disabled during fatal-error handling. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
adf8ac61ad
commit
4a312423c1
3 files changed
+3
-1
No files matched your search
@@ -108,6 +108,8 @@ asmlinkage void fatal_trap(int trapnr, struct xen_regs *regs)
|
||||
"machine check", "simd error"
|
||||
};
|
||||
|
||||
watchdog_on = 0;
|
||||
|
||||
show_registers(regs);
|
||||
|
||||
if ( trapnr == TRAP_page_fault )
|
||||
|
||||
@@ -598,6 +598,7 @@ void panic(const char *fmt, ...)
|
||||
|
||||
debugtrace_dump();
|
||||
|
||||
watchdog_on = 0;
|
||||
mdelay(5000);
|
||||
machine_restart(0);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#define BUG() do { \
|
||||
printk("BUG at %s:%d\n", __FILE__, __LINE__); \
|
||||
debugtrace_dump(); \
|
||||
FORCE_CRASH(); \
|
||||
} while ( 0 )
|
||||
|
||||
|
||||