ia64/linux-2.6.18-xen.hg

changeset 851:67a7ffcc5067

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 <brendan@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 01 11:43:01 2009 +0100 (2009-04-01)
parents b358ebf1c416
children 571229e265e2
files drivers/xen/core/cpu_hotplug.c
line diff
     1.1 --- a/drivers/xen/core/cpu_hotplug.c	Tue Mar 31 12:01:50 2009 +0100
     1.2 +++ b/drivers/xen/core/cpu_hotplug.c	Wed Apr 01 11:43:01 2009 +0100
     1.3 @@ -144,8 +144,11 @@ void smp_resume(void)
     1.4  {
     1.5  	unsigned int cpu;
     1.6  
     1.7 -	for_each_possible_cpu(cpu)
     1.8 +	for_each_possible_cpu(cpu) {
     1.9 +		if (cpu == 0)
    1.10 +			continue;
    1.11  		vcpu_hotplug(cpu);
    1.12 +	}
    1.13  }
    1.14  
    1.15  int cpu_up_check(unsigned int cpu)