summaryrefslogtreecommitdiff
path: root/drivers/xen/manage.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-02-17 14:04:20 +0300
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-02-25 19:43:14 +0300
commitb056b6a0144de90707cd22cf7b4f60bf69c86d59 (patch)
tree11d86bf4a7acb267ee72a1e8f4c92622d93f7f97 /drivers/xen/manage.c
parent55fb4acef7089a6d4d93ed8caae6c258d06cfaf7 (diff)
downloadlinux-b056b6a0144de90707cd22cf7b4f60bf69c86d59.tar.xz
xen: suspend: remove xen_hvm_suspend
It is now identical to xen_suspend, the differences are encapsulated in the suspend_info struct. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/manage.c')
-rw-r--r--drivers/xen/manage.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 5b7a0a9402e7..ebb292859b59 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -62,44 +62,6 @@ static void xen_post_suspend(int cancelled)
}
#ifdef CONFIG_PM_SLEEP
-static int xen_hvm_suspend(void *data)
-{
- struct suspend_info *si = data;
- int err;
-
- BUG_ON(!irqs_disabled());
-
- err = sysdev_suspend(PMSG_SUSPEND);
- if (err) {
- printk(KERN_ERR "xen_hvm_suspend: sysdev_suspend failed: %d\n",
- err);
- return err;
- }
-
- if (si->pre)
- si->pre();
-
- /*
- * This hypercall returns 1 if suspend was cancelled
- * or the domain was merely checkpointed, and 0 if it
- * is resuming in a new domain.
- */
- si->cancelled = HYPERVISOR_suspend(si->arg);
-
- if (si->post)
- si->post(si->cancelled);
-
- if (!si->cancelled) {
- xen_irq_resume();
- xen_console_resume();
- xen_timer_resume();
- }
-
- sysdev_resume();
-
- return 0;
-}
-
static int xen_suspend(void *data)
{
struct suspend_info *si = data;
@@ -183,10 +145,7 @@ static void do_suspend(void)
si.post = &xen_post_suspend;
}
- if (xen_hvm_domain())
- err = stop_machine(xen_hvm_suspend, &si, cpumask_of(0));
- else
- err = stop_machine(xen_suspend, &si, cpumask_of(0));
+ err = stop_machine(xen_suspend, &si, cpumask_of(0));
dpm_resume_noirq(PMSG_RESUME);