ia64/xen-unstable

changeset 14220:1fb5ae0ee453

linux: Use old-mode of save/restore for uniproc guests (it's faster).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Mar 02 16:00:22 2007 +0000 (2007-03-02)
parents 1061c7bff38f
children cc18ea7309b3
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	Fri Mar 02 15:59:12 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c	Fri Mar 02 16:00:22 2007 +0000
     1.3 @@ -210,6 +210,10 @@ int __xen_suspend(int fast_suspend)
     1.4  	}
     1.5  #endif
     1.6  
     1.7 +	/* If we are definitely UP then 'slow mode' is actually faster. */
     1.8 +	if (num_possible_cpus() == 1)
     1.9 +		fast_suspend = 0;
    1.10 +
    1.11  	if (fast_suspend) {
    1.12  		xenbus_suspend();
    1.13  		err = stop_machine_run(take_machine_down, &fast_suspend, 0);