Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234234
b: refs/heads/master
c: b056b6a
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Stefano Stabellini committed Feb 25, 2011
1 parent 8d9cf22 commit a00c452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55fb4acef7089a6d4d93ed8caae6c258d06cfaf7
refs/heads/master: b056b6a0144de90707cd22cf7b4f60bf69c86d59
43 changes: 1 addition & 42 deletions trunk/drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit a00c452

Please sign in to comment.