public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kgdb: fix kgdbeth compilation and make it init late enough
@ 2004-03-02 11:25 Pavel Machek
  2004-03-02 15:32 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2004-03-02 11:25 UTC (permalink / raw)
  To: Amit S. Kale, kernel list

Hi!

CONFIG_NO_KGDB_CPUS can not be found anywhere in the patches => its
probably not needd any more. init_kgdboe can't be module_initcall; in
such cases it initializes after tg3 network card (and that's bad).

Okay to commit?
								Pavel

--- clean-mm/drivers/net/kgdb_eth.c	2004-03-01 22:03:55.000000000 +0100
+++ linux-mm/drivers/net/kgdb_eth.c	2004-03-01 23:00:07.000000000 +0100
@@ -157,15 +157,6 @@
 
 static int init_kgdboe(void)
 {
-#ifdef CONFIG_SMP
-	if (num_online_cpus() > CONFIG_NO_KGDB_CPUS) {
-		printk
-		    ("kgdb: too manu cpus. Cannot enable debugger with more than %d cpus\n",
-		     CONFIG_NO_KGDB_CPUS);
-		return -1;
-	}
-#endif
-
 	if (!np.remote_ip || netpoll_setup(&np))
 		return 1;
 
@@ -176,4 +167,4 @@
 	return 0;
 }
 
-module_init(init_kgdboe);
+late_initcall(init_kgdboe);		/* This needs to be done after netcard is initialized */ 

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

end of thread, other threads:[~2004-03-03  1:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02 11:25 kgdb: fix kgdbeth compilation and make it init late enough Pavel Machek
2004-03-02 15:32 ` Tom Rini
2004-03-02 22:28   ` Pavel Machek
2004-03-02 22:43     ` Tom Rini
2004-03-03  1:04       ` George Anzinger
2004-03-02 22:33   ` Pavel Machek
2004-03-03  1:05     ` George Anzinger

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