WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86: During boot, initialise cpu-numa inf

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: During boot, initialise cpu-numa info for all present CPUs.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2010 15:05:10 -0700
Delivery-date: Wed, 19 May 2010 15:05:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: During boot, initialise cpu-numa info for all present CPUs., Xen patchbot-unstable <=