From: Anthony PERARD Subject: [PATCH v2] xen: Allow CPU to be counted than currently "plugged". Date: Mon, 17 Jun 2013 15:22:35 +0100 Message-ID: <1371478955-29750-1-git-send-email-anthony.perard@citrix.com> References: <1371478402-28082-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1371478402-28082-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen Devel Cc: Anthony PERARD , Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- 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