public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] [patch] logical CPU numbering
@ 2003-03-20 19:03 Martin Hicks
  2003-03-20 20:07 ` Wichmann, Mats D
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Martin Hicks @ 2003-03-20 19:03 UTC (permalink / raw)
  To: linux-ia64

Hello,

If a CPU fails to start during smp_boot_cpus(), then the logical CPU
numbering gets will have a "hole".  Using the number of booted CPU's
instead of the loop index will correct this.

This patch is against 2.4.21-pre5.

thanks,
mh

-- 
Wild Open Source Inc.                  mort@wildopensource.com



--- linux-2.4.21-pre5-ia64-030312.pristine/arch/ia64/kernel/smpboot.c	Sun Mar 16 10:18:53 2003
+++ linux-2.4.21-pre5-ia64-030312/arch/ia64/kernel/smpboot.c	Thu Mar 20 10:47:07 2003
@@ -522,7 +522,7 @@
 			/*
 			 * Make sure we unmap all failed CPUs
 			 */
-			if (ia64_cpu_to_sapicid[cpu] = -1)
+			if (ia64_cpu_to_sapicid[cpucount] = -1)
 				printk("phys CPU#%d not responding - cannot use it.\n", cpu);
 		}
 


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

end of thread, other threads:[~2003-04-17 20:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-20 19:03 [Linux-ia64] [patch] logical CPU numbering Martin Hicks
2003-03-20 20:07 ` Wichmann, Mats D
2003-03-25 18:03 ` Martin Hicks
2003-04-03 18:31 ` Martin Hicks
2003-04-17 19:13 ` Bjorn Helgaas
2003-04-17 20:25 ` Martin Hicks

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