From: Brendan Cully Subject: [PATCH] Skip vcpu_hotplug for VCPU 0 in smp_resume Date: Tue, 31 Mar 2009 09:53:11 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Brendan Cully # Date 1238518139 25200 # Node ID ed51e0ec7b8c08b1f191af7f89e53302f855f7d7 # Parent 4c7eb2e71e9d9d94583336c022042ffaa3ba6481 Skip vcpu_hotplug for VCPU 0 in smp_resume. This function can occasionally take up to 2 seconds to complete, and smp_suspend also skips VCPU 0. Signed-off-by: Brendan Cully diff --git a/drivers/xen/core/cpu_hotplug.c b/drivers/xen/core/cpu_hotplug.c --- a/drivers/xen/core/cpu_hotplug.c +++ b/drivers/xen/core/cpu_hotplug.c @@ -144,8 +144,11 @@ { unsigned int cpu; - for_each_possible_cpu(cpu) + for_each_possible_cpu(cpu) { + if (cpu == 0) + continue; vcpu_hotplug(cpu); + } } int cpu_up_check(unsigned int cpu)