]> git.baikalelectronics.ru Git - kernel.git/commit
xen: refactor suspend pre/post hooks
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 8 May 2014 10:09:23 +0000 (11:09 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 12 May 2014 16:19:56 +0000 (17:19 +0100)
commit4689cbf569e65bb7b602a2ddedcb590444cc22c2
tree4a718b5c8ba94d2d73e83ad7e50e3796a41b345f
parent2be52786ae4fab52d4969aed7ca4f96d1839afd4
xen: refactor suspend pre/post hooks

New architectures currently have to provide implementations of 5 different
functions: xen_arch_pre_suspend(), xen_arch_post_suspend(),
xen_arch_hvm_post_suspend(), xen_mm_pin_all(), and xen_mm_unpin_all().

Refactor the suspend code to only require xen_arch_pre_suspend() and
xen_arch_post_suspend().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/suspend.c
arch/x86/xen/xen-ops.h
drivers/xen/manage.c
include/xen/xen-ops.h