]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
Skip vcpu_hotplug for VCPU 0 in smp_resume.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 1 Apr 2009 10:43:01 +0000 (11:43 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 1 Apr 2009 10:43:01 +0000 (11:43 +0100)
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>
drivers/xen/core/cpu_hotplug.c

index f9f49d801dde320f9406ab0e8c9277cea3dbde4a..45014c082bf0e5890a7cd59466a2d79f5fc56fdb 100644 (file)
@@ -144,8 +144,11 @@ void smp_resume(void)
 {
        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)