mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* netpoll/netconsole minor tweaks
@ 2003-09-17 18:24 Chris Wright
  2003-09-17 20:51 ` Matt Mackall
  2003-09-18 12:30 ` Alan Cox
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Wright @ 2003-09-17 18:24 UTC (permalink / raw)
  To: Matt Mackall; +Cc: linux-kernel

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
 };

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-19  7:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 18:24 netpoll/netconsole minor tweaks Chris Wright
2003-09-17 20:51 ` Matt Mackall
2003-09-18  5:17   ` Chris Wright
2003-09-18 12:30 ` Alan Cox
2003-09-18 16:48   ` Chris Wright
2003-09-18 17:13     ` Arjan van de Ven
2003-09-18 17:50       ` Chris Wright
2003-09-18 21:12     ` Alan Cox
2003-09-18 23:10       ` Jesper Juhl
2003-09-19  7:40         ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®