Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: suspend: add "arch" to pre/post suspend hooks

xen_pre_device_suspend is unused on ia64.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

authored by

Ian Campbell and committed by
Stefano Stabellini
03c8142b 36b401e2

+12 -17
+3 -8
arch/ia64/xen/suspend.c
··· 37 37 /* nothing */ 38 38 } 39 39 40 - void xen_pre_device_suspend(void) 40 + void 41 + xen_arch_pre_suspend() 41 42 { 42 43 /* nothing */ 43 44 } 44 45 45 46 void 46 - xen_pre_suspend() 47 - { 48 - /* nothing */ 49 - } 50 - 51 - void 52 - xen_post_suspend(int suspend_cancelled) 47 + xen_arch_post_suspend(int suspend_cancelled) 53 48 { 54 49 if (suspend_cancelled) 55 50 return;
+3 -3
arch/x86/xen/suspend.c
··· 12 12 #include "xen-ops.h" 13 13 #include "mmu.h" 14 14 15 - void xen_pre_suspend(void) 15 + void xen_arch_pre_suspend(void) 16 16 { 17 17 xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn); 18 18 xen_start_info->console.domU.mfn = ··· 26 26 BUG(); 27 27 } 28 28 29 - void xen_hvm_post_suspend(int suspend_cancelled) 29 + void xen_arch_hvm_post_suspend(int suspend_cancelled) 30 30 { 31 31 #ifdef CONFIG_XEN_PVHVM 32 32 int cpu; ··· 41 41 #endif 42 42 } 43 43 44 - void xen_post_suspend(int suspend_cancelled) 44 + void xen_arch_post_suspend(int suspend_cancelled) 45 45 { 46 46 xen_build_mfn_list_list(); 47 47
+3 -3
drivers/xen/manage.c
··· 61 61 */ 62 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 65 gnttab_resume(); 66 66 67 67 if (!si->cancelled) { ··· 91 91 92 92 xen_mm_pin_all(); 93 93 gnttab_suspend(); 94 - xen_pre_suspend(); 94 + xen_arch_pre_suspend(); 95 95 96 96 /* 97 97 * This hypercall returns 1 if suspend was cancelled ··· 100 100 */ 101 101 si->cancelled = HYPERVISOR_suspend(si->arg); 102 102 103 - xen_post_suspend(si->cancelled); 103 + xen_arch_post_suspend(si->cancelled); 104 104 gnttab_resume(); 105 105 xen_mm_unpin_all(); 106 106
+3 -3
include/xen/xen-ops.h
··· 5 5 6 6 DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu); 7 7 8 - void xen_pre_suspend(void); 9 - void xen_post_suspend(int suspend_cancelled); 10 - void xen_hvm_post_suspend(int suspend_cancelled); 8 + void xen_arch_pre_suspend(void); 9 + void xen_arch_post_suspend(int suspend_cancelled); 10 + void xen_arch_hvm_post_suspend(int suspend_cancelled); 11 11 12 12 void xen_mm_pin_all(void); 13 13 void xen_mm_unpin_all(void);