summaryrefslogtreecommitdiffstats
path: root/drivers/xen/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/manage.c')
-rw-r--r--drivers/xen/manage.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index c425d03d37d2..8835065029d3 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -72,18 +72,15 @@ static int xen_suspend(void *data)
72 } 72 }
73 73
74 gnttab_suspend(); 74 gnttab_suspend();
75 xen_manage_runstate_time(-1);
75 xen_arch_pre_suspend(); 76 xen_arch_pre_suspend();
76 77
77 /*
78 * This hypercall returns 1 if suspend was cancelled
79 * or the domain was merely checkpointed, and 0 if it
80 * is resuming in a new domain.
81 */
82 si->cancelled = HYPERVISOR_suspend(xen_pv_domain() 78 si->cancelled = HYPERVISOR_suspend(xen_pv_domain()
83 ? virt_to_gfn(xen_start_info) 79 ? virt_to_gfn(xen_start_info)
84 : 0); 80 : 0);
85 81
86 xen_arch_post_suspend(si->cancelled); 82 xen_arch_post_suspend(si->cancelled);
83 xen_manage_runstate_time(si->cancelled ? 1 : 0);
87 gnttab_resume(); 84 gnttab_resume();
88 85
89 if (!si->cancelled) { 86 if (!si->cancelled) {