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.

Reply via email to