direct-io.hg

changeset 14352:6d2328b353c8

linux: No need to manually bring VCPUs online across 'fast' save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Mar 12 14:11:43 2007 +0000 (2007-03-12)
parents 7ec182baf9fd
children b01d4f415f5f
files linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c	Mon Mar 12 14:11:07 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c	Mon Mar 12 14:11:43 2007 +0000
     1.3 @@ -84,7 +84,7 @@ static void post_suspend(int suspend_can
     1.4  			pfn_to_mfn(xen_start_info->console.domU.mfn);
     1.5  	} else {
     1.6  #ifdef CONFIG_SMP
     1.7 -		cpu_initialized_map = cpumask_of_cpu(0);
     1.8 +		cpu_initialized_map = cpu_online_map;
     1.9  #endif
    1.10  	}
    1.11  
    1.12 @@ -180,20 +180,6 @@ static int take_machine_down(void *p_fas
    1.13  	time_resume();
    1.14  	local_irq_enable();
    1.15  
    1.16 -	if (fast_suspend && !suspend_cancelled) {
    1.17 -		/*
    1.18 -		 * In fast-suspend mode the APs may not be brought back online
    1.19 -		 * when we resume. In that case we do it here.
    1.20 -		 */
    1.21 -		for_each_online_cpu(cpu) {
    1.22 -			if (cpu == 0)
    1.23 -				continue;
    1.24 -			cpu_set_initialized(cpu);
    1.25 -			err = HYPERVISOR_vcpu_op(VCPUOP_up, cpu, NULL);
    1.26 -			BUG_ON(err);
    1.27 -		}
    1.28 -	}
    1.29 -
    1.30  	return suspend_cancelled;
    1.31  }
    1.32