[PATCH][2.5] smp_init 'CPUS done' looks strange

From: Zwane Mwaikambo (zwane@holomorphy.com)
Date: Tue Nov 12 2002 - 22:50:38 EST


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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:28 EST