public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.5] smp_init 'CPUS done' looks strange
@ 2002-11-13  3:50 Zwane Mwaikambo
  2002-11-13  9:34 ` Rusty Russell
  0 siblings, 1 reply; 4+ messages in thread
From: Zwane Mwaikambo @ 2002-11-13  3:50 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds, Rusty Russell

Also, it would make sense in the future if smp_cpus_done actually gets a 
value denoting how many cpus are online.

	Zwane

Index: linux-2.5.47/init/main.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.47/init/main.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 main.c
--- linux-2.5.47/init/main.c	11 Nov 2002 03:59:33 -0000	1.1.1.1
+++ linux-2.5.47/init/main.c	13 Nov 2002 03:47:56 -0000
@@ -347,8 +347,8 @@
 	}
 
 	/* Any cleanup work */
-	printk("CPUS done %u\n", max_cpus);
-	smp_cpus_done(max_cpus);
+	printk("CPUS done %u\n", num_online_cpus());
+	smp_cpus_done(num_online_cpus());
 #if 0
 	/* Get other processors into their bootup holding patterns. */
 

-- 
function.linuxpower.ca


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

end of thread, other threads:[~2002-11-14  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-13  3:50 [PATCH][2.5] smp_init 'CPUS done' looks strange Zwane Mwaikambo
2002-11-13  9:34 ` Rusty Russell
2002-11-13 13:22   ` Zwane Mwaikambo
2002-11-14  1:59     ` Rusty Russell

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