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

[Xen-devel] [PATCH v2] xen: Allow CPU to be counted than currently "plugged".



Under Xen, SeaBIOS can count more CPU than there should be. This patch
will allow more CPU to come up instead of going to infinite loop waiting
for the CPU counter to be decremented.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 src/smp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smp.c b/src/smp.c
index 3c36f8c..c547746 100644
--- a/src/smp.c
+++ b/src/smp.c
@@ -132,7 +132,7 @@ smp_probe(void)
         msleep(10);
     } else {
         u8 cmos_smp_count = inb_cmos(CMOS_BIOS_SMP_COUNT);
-        while (cmos_smp_count + 1 != readl(&CountCPUs))
+        while (cmos_smp_count + 1 > readl(&CountCPUs))
             yield();
     }
 
-- 
Anthony PERARD


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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