patch-2.4.25 linux-2.4.25/arch/i386/kernel/smpboot.c

Next file: linux-2.4.25/arch/i386/kernel/time.c
Previous file: linux-2.4.25/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/i386/kernel/smpboot.c linux-2.4.25/arch/i386/kernel/smpboot.c
@@ -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 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)