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

[Xen-changelog] [xen-3.0-testing] [LINUX] Fix cpu_possible_map initialisation.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c5fe7d5c4c818ae065d5804c6aa347aa4ec6816f
# Parent  9dda8050d46df88d86f09772b9abf619a6adb475
[LINUX] Fix cpu_possible_map initialisation.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   10248:7f219d68e6849b873fbd76e9a30b5ba297acbcea
xen-unstable date:        Thu Jun  1 19:14:42 2006 +0100
---
 linux-2.6-xen-sparse/drivers/xen/core/smpboot.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -r 9dda8050d46d -r c5fe7d5c4c81 
linux-2.6-xen-sparse/drivers/xen/core/smpboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/smpboot.c   Thu Jun 01 16:42:40 
2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/core/smpboot.c   Thu Jun 01 19:17:22 
2006 +0100
@@ -97,9 +97,8 @@ void __init prefill_possible_map(void)
 
        for (i = 0; i < NR_CPUS; i++) {
                rc = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
-               if (rc == -ENOENT)
-                       break;
-               cpu_set(i, cpu_possible_map);
+               if (rc >= 0)
+                       cpu_set(i, cpu_possible_map);
        }
 }
 

_______________________________________________
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®.