[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: During boot, initialise cpu-numa info for all present CPUs.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274300097 -3600
# Node ID b127760a4725041734f13092196970fbc1a002e0
# Parent  c414129c8e129422d03898ec5822f56b2d2da4f8
x86: During boot, initialise cpu-numa info for all present CPUs.

Previously we would skip ones we didn't bring online.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/setup.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff -r c414129c8e12 -r b127760a4725 xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Wed May 19 20:46:05 2010 +0100
+++ b/xen/arch/x86/setup.c      Wed May 19 21:14:57 2010 +0100
@@ -1007,15 +1007,13 @@ void __init __start_xen(unsigned long mb
 
     for_each_present_cpu ( i )
     {
-        if ( num_online_cpus() >= max_cpus )
-            break;
-        if ( !cpu_online(i) )
-            cpu_up(i);
-
         /* Set up cpu_to_node[]. */
         srat_detect_node(i);
         /* Set up node_to_cpumask based on cpu_to_node[]. */
         numa_add_cpu(i);        
+
+        if ( (num_online_cpus() < max_cpus) && !cpu_online(i) )
+            cpu_up(i);
     }
 
     printk("Brought up %ld CPUs\n", (long)num_online_cpus());

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.