netpoll/netconsole minor tweaks

From: Chris Wright
Date: Wed Sep 17 2003 - 13:25:59 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/