lkml.org 
[lkml]   [2003]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subjectnetpoll/netconsole minor tweaks
Hi Matt,

Here's a couple small tweaks. The first is to netpoll_setup. The settle
time was too short for my e100, and the system would hang. The second
is to netconsole so that it registers a console with CON_PRINTBUFFER.
This helps debugging early bootup issues where you want to capture data
from before netconsole is initialized. Perhaps it should be a param
to netconsole?

thanks,
-chris

--- 2.6.0-test5-mm2/net/core/netpoll.c.wait_fix 2003-09-15 15:46:28.000000000 -0700
+++ 2.6.0-test5-mm2/net/core/netpoll.c 2003-09-15 16:14:20.000000000 -0700
@@ -526,7 +526,7 @@ int netpoll_setup(struct netpoll *np)
rtnl_shunlock();

/* Give driver a chance to settle */
- jiff = jiffies + 2*HZ;
+ jiff = jiffies + 4*HZ;
while (time_before(jiffies, jiff))
;
}
--- 2.6.0-test5-mm2/drivers/net/netconsole.c.print_buf 2003-09-15 16:21:31.000000000 -0700
+++ 2.6.0-test5-mm2/drivers/net/netconsole.c 2003-09-17 11:09:59.000000000 -0700
@@ -95,7 +95,7 @@
}

static struct console netconsole = {
- .flags = CON_ENABLED,
+ .flags = CON_ENABLED | CON_PRINTBUFFER,
.write = write_msg
};
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.063 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site