]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
PV-on-HVM: Fix __xen_suspend() for changed XenLinux interface.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 16:52:56 +0000 (16:52 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 16:52:56 +0000 (16:52 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17153:9049b0b62e0891e9bfb188bef40f68c04b5ea653
xen-unstable date:        Fri Feb 29 10:30:28 2008 +0000

unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c

index 2c225b76ac583c781455d84e895c3ccae2f569dd..b2ef2093f695b13ab74978e3b06a6cd17f4aaaef 100644 (file)
@@ -72,7 +72,7 @@ static int bp_suspend(void)
        return suspend_cancelled;
 }
 
-int __xen_suspend(int fast_suspend)
+int __xen_suspend(int fast_suspend, void (*resume_notifier)(void))
 {
        int err, suspend_cancelled, nr_cpus;
        struct ap_suspend_info info;
@@ -102,6 +102,7 @@ int __xen_suspend(int fast_suspend)
 
        local_irq_disable();
        suspend_cancelled = bp_suspend();
+       resume_notifier();
        local_irq_enable();
 
        smp_mb();