1 #include <linux/types.h>
2 #include <linux/tick.h>
5 #include <xen/interface/xen.h>
6 #include <xen/grant_table.h>
7 #include <xen/events.h>
9 #include <asm/xen/hypercall.h>
10 #include <asm/xen/page.h>
11 #include <asm/fixmap.h>
17 void xen_arch_pre_suspend(void)
23 void xen_arch_post_suspend(int cancelled
)
26 xen_pv_post_suspend(cancelled
);
28 xen_hvm_post_suspend(cancelled
);
31 static void xen_vcpu_notify_restore(void *data
)
33 /* Boot processor notified via generic timekeeping_resume() */
34 if (smp_processor_id() == 0)
40 static void xen_vcpu_notify_suspend(void *data
)
45 void xen_arch_resume(void)
49 on_each_cpu(xen_vcpu_notify_restore
, NULL
, 1);
51 for_each_online_cpu(cpu
)
55 void xen_arch_suspend(void)
59 for_each_online_cpu(cpu
)
62 on_each_cpu(xen_vcpu_notify_suspend
, NULL
, 1);