ia64/xen-unstable

changeset 17160:9049b0b62e08

PV-on-HVM: Fix __xen_suspend() for changed XenLinux interface.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 29 10:30:28 2008 +0000 (2008-02-29)
parents 8271e1268828
children 71a8366fb212
files unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c	Thu Feb 28 16:02:44 2008 +0000
     1.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c	Fri Feb 29 10:30:28 2008 +0000
     1.3 @@ -71,7 +71,7 @@ static int bp_suspend(void)
     1.4  	return suspend_cancelled;
     1.5  }
     1.6  
     1.7 -int __xen_suspend(int fast_suspend)
     1.8 +int __xen_suspend(int fast_suspend, void (*resume_notifier)(void))
     1.9  {
    1.10  	int err, suspend_cancelled, nr_cpus;
    1.11  	struct ap_suspend_info info;
    1.12 @@ -101,6 +101,7 @@ int __xen_suspend(int fast_suspend)
    1.13  
    1.14  	local_irq_disable();
    1.15  	suspend_cancelled = bp_suspend();
    1.16 +	resume_notifier();
    1.17  	local_irq_enable();
    1.18  
    1.19  	smp_mb();