Skip to content

Commit

Permalink
xen: suspend: add "arch" to pre/post suspend hooks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Campbell authored and Stefano Stabellini committed Feb 25, 2011
1 parent 36b401e commit 03c8142
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
9 changes: 2 additions & 7 deletions arch/ia64/xen/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,14 @@ xen_mm_unpin_all(void)
/* nothing */
}

void xen_pre_device_suspend(void)
{
/* nothing */
}

void
xen_pre_suspend()
xen_arch_pre_suspend()
{
/* nothing */
}

void
xen_post_suspend(int suspend_cancelled)
xen_arch_post_suspend(int suspend_cancelled)
{
if (suspend_cancelled)
return;
Expand Down
6 changes: 3 additions & 3 deletions arch/x86/xen/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "xen-ops.h"
#include "mmu.h"

void xen_pre_suspend(void)
void xen_arch_pre_suspend(void)
{
xen_start_info->store_mfn = mfn_to_pfn(xen_start_info->store_mfn);
xen_start_info->console.domU.mfn =
Expand All @@ -26,7 +26,7 @@ void xen_pre_suspend(void)
BUG();
}

void xen_hvm_post_suspend(int suspend_cancelled)
void xen_arch_hvm_post_suspend(int suspend_cancelled)
{
#ifdef CONFIG_XEN_PVHVM
int cpu;
Expand All @@ -41,7 +41,7 @@ void xen_hvm_post_suspend(int suspend_cancelled)
#endif
}

void xen_post_suspend(int suspend_cancelled)
void xen_arch_post_suspend(int suspend_cancelled)
{
xen_build_mfn_list_list();

Expand Down
6 changes: 3 additions & 3 deletions drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int xen_hvm_suspend(void *data)
*/
si->cancelled = HYPERVISOR_suspend(si->arg);

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

if (!si->cancelled) {
Expand Down Expand Up @@ -91,7 +91,7 @@ static int xen_suspend(void *data)

xen_mm_pin_all();
gnttab_suspend();
xen_pre_suspend();
xen_arch_pre_suspend();

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

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

Expand Down
6 changes: 3 additions & 3 deletions include/xen/xen-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);

void xen_pre_suspend(void);
void xen_post_suspend(int suspend_cancelled);
void xen_hvm_post_suspend(int suspend_cancelled);
void xen_arch_pre_suspend(void);
void xen_arch_post_suspend(int suspend_cancelled);
void xen_arch_hvm_post_suspend(int suspend_cancelled);

void xen_mm_pin_all(void);
void xen_mm_unpin_all(void);
Expand Down

0 comments on commit 03c8142

Please sign in to comment.