Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234232
b: refs/heads/master
c: 07af381
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Stefano Stabellini committed Feb 25, 2011
1 parent 73c3d65 commit af26d2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 82043bb60d24d2897074905c94be5a53071e8913
refs/heads/master: 07af38102fc4f260cc5a2418ec833707f53cdf70
14 changes: 7 additions & 7 deletions trunk/drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@ struct suspend_info {
unsigned long arg; /* extra hypercall argument */
};

static void xen_hvm_post_suspend(void)
static void xen_hvm_post_suspend(int cancelled)
{
xen_arch_hvm_post_suspend(cancelled);
gnttab_resume();
}

static void xen_pre_suspend(void)
{
xen_mm_pin_all();
gnttab_suspend();
xen_arch_pre_suspend();
}

static void xen_post_suspend(void)
static void xen_post_suspend(int cancelled)
{
xen_arch_post_suspend(cancelled);
gnttab_resume();
xen_mm_unpin_all();
}
Expand All @@ -78,8 +81,7 @@ static int xen_hvm_suspend(void *data)
*/
si->cancelled = HYPERVISOR_suspend(si->arg);

xen_arch_hvm_post_suspend(si->cancelled);
xen_hvm_post_suspend();
xen_hvm_post_suspend(si->cancelled);

if (!si->cancelled) {
xen_irq_resume();
Expand Down Expand Up @@ -107,7 +109,6 @@ static int xen_suspend(void *data)
}

xen_pre_suspend();
xen_arch_pre_suspend();

/*
* This hypercall returns 1 if suspend was cancelled
Expand All @@ -116,8 +117,7 @@ static int xen_suspend(void *data)
*/
si->cancelled = HYPERVISOR_suspend(si->arg);

xen_arch_post_suspend(si->cancelled);
xen_post_suspend();
xen_post_suspend(si->cancelled);

if (!si->cancelled) {
xen_irq_resume();
Expand Down

0 comments on commit af26d2d

Please sign in to comment.