ChangeSet@1.1136.1.68 2003-12-06 16:25:16-02:00 wli at holomorphy.com [PATCH] Fixup smb_boot_cpus(): Fix HT detection bug On Wed, Dec 03, 2003 at 06:41:36PM -0500, Ethan Weinstein wrote: > Ok, setting CONFIG_NR_CPUS=8 does indeed solve the HT issue, looks like > it was the numbering scheme: Something like this might do the trick. NR_CPUS is already checked indirectly via max_cpus. -- wli --- linux-2.4.23/arch/i386/kernel/smpboot.c.orig Tue Dec 9 00:27:10 2003 +++ linux-2.4.23/arch/i386/kernel/smpboot.c Tue Dec 9 00:27:23 2003 @@ -1106,7 +1106,7 @@ */ Dprintk("CPU present map: %lx\n", phys_cpu_present_map); - for (bit = 0; bit < NR_CPUS; bit++) { + for (bit = 0; bit < BITS_PER_LONG; bit++) { apicid = cpu_present_to_apicid(bit); /* don't try to boot BAD_APICID */