[PATCH 007/18] kdb-touch-nmi-watchdog
[email protected] Thu, 10 Jul 2008 20:57:11 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
Touch NMI watchdog in various KDB busy-loops. Various places where, for example, KDB writes out data to the terminal may take so long that the NMI watchdog timer expires, panicing the kernel. So touch the NMI watchdog timer on each iteration through such loops. Author: Jim Houston <[email protected]> Signed-off-by: Joe Korty <[email protected]> Index: 2.6.26-rc9/kdb/kdb_io.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdb_io.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/kdb_io.c 2008-07-10 13:27:33.000000000 -0400 @@ -664,6 +664,7 @@ while (c) { c->write(c, kdb_buffer, strlen(kdb_buffer)); + touch_nmi_watchdog(); c = c->next; } if (logging) { @@ -720,6 +721,7 @@ while (c) { c->write(c, moreprompt, strlen(moreprompt)); + touch_nmi_watchdog(); c = c->next; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.