aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ia64/xen/suspend.c9
-rw-r--r--arch/x86/xen/suspend.c6
-rw-r--r--drivers/xen/manage.c6
-rw-r--r--include/xen/xen-ops.h6
4 files changed, 11 insertions, 16 deletions
diff --git a/arch/ia64/xen/suspend.c b/arch/ia64/xen/suspend.c
index fd66b048c6fa..419c8620945a 100644
--- a/arch/ia64/xen/suspend.c
+++ b/arch/ia64/xen/suspend.c
@@ -37,19 +37,14 @@ xen_mm_unpin_all(void)
37 /* nothing */ 37 /* nothing */
38} 38}
39 39
40void xen_pre_device_suspend(void)
41{
42 /* nothing */
43}
44
45void 40void
46xen_pre_suspend() 41xen_arch_pre_suspend()
47{ 42{
48 /* nothing */ 43 /* nothing */
49} 44}
50 45
51void 46void
52xen_post_suspend(int suspend_cancelled) 47xen_arch_post_suspend(int suspend_cancelled)
53{ 48{
54 if (suspend_cancelled) 49 if (suspend_cancelled)
55 return; 50 return;
diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c
index 4a3d3dd3dd30..45329c8c226e 100644
--- a/arch/x86/xen/suspend.c
+++ b/arch/x86/xen/suspend.c
@@ -12,7 +12,7 @@
12#include "xen-ops.h" 12#include "xen-ops.h"
13#include "mmu.h" 13#include "mmu.h"
14 14
15void xen_pre_suspend(void) 15void xen_arch_pre_suspend(void)
16{ 16{
17 xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn); 17 xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn);
18 xen_start_info->console.domU.mfn = 18 xen_start_info->console.domU.mfn =
@@ -26,7 +26,7 @@ void xen_pre_suspend(void)
26 BUG(); 26 BUG();
27} 27}
28 28
29void xen_hvm_post_suspend(int suspend_cancelled) 29void xen_arch_hvm_post_suspend(int suspend_cancelled)
30{ 30{
31#ifdef CONFIG_XEN_PVHVM 31#ifdef CONFIG_XEN_PVHVM
32 int cpu; 32 int cpu;
@@ -41,7 +41,7 @@ void xen_hvm_post_suspend(int suspend_cancelled)
41#endif 41#endif
42} 42}
43 43
44void xen_post_suspend(int suspend_cancelled) 44void xen_arch_post_suspend(int suspend_cancelled)
45{ 45{
46 xen_build_mfn_list_list(); 46 xen_build_mfn_list_list();
47 47
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 6ce6b91e7645..134eb73ca596 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -61,7 +61,7 @@ static int xen_hvm_suspend(void *data)
61 */ 61 */
62 si->cancelled = HYPERVISOR_suspend(si->arg); 62 si->cancelled = HYPERVISOR_suspend(si->arg);
63 63
64 xen_hvm_post_suspend(si->cancelled); 64 xen_arch_hvm_post_suspend(si->cancelled);
65 gnttab_resume(); 65 gnttab_resume();
66 66
67 if (!si->cancelled) { 67 if (!si->cancelled) {
@@ -91,7 +91,7 @@ static int xen_suspend(void *data)
91 91
92 xen_mm_pin_all(); 92 xen_mm_pin_all();
93 gnttab_suspend(); 93 gnttab_suspend();
94 xen_pre_suspend(); 94 xen_arch_pre_suspend();
95 95
96 /* 96 /*
97 * This hypercall returns 1 if suspend was cancelled 97 * This hypercall returns 1 if suspend was cancelled
@@ -100,7 +100,7 @@ static int xen_suspend(void *data)
100 */ 100 */
101 si->cancelled = HYPERVISOR_suspend(si->arg); 101 si->cancelled = HYPERVISOR_suspend(si->arg);
102 102
103 xen_post_suspend(si->cancelled); 103 xen_arch_post_suspend(si->cancelled);
104 gnttab_resume(); 104 gnttab_resume();
105 xen_mm_unpin_all(); 105 xen_mm_unpin_all();
106 106
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 98b92154a264..03c85d7387fb 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -5,9 +5,9 @@
5 5
6DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu); 6DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
7 7
8void xen_pre_suspend(void); 8void xen_arch_pre_suspend(void);
9void xen_post_suspend(int suspend_cancelled); 9void xen_arch_post_suspend(int suspend_cancelled);
10void xen_hvm_post_suspend(int suspend_cancelled); 10void xen_arch_hvm_post_suspend(int suspend_cancelled);
11 11
12void xen_mm_pin_all(void); 12void xen_mm_pin_all(void);
13void xen_mm_unpin_all(void); 13void xen_mm_unpin_all(void);