lkml.org 
[lkml]   [2002]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.5] smp_init 'CPUS done' looks strange
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/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.054 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site