projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/xen: don't reset vcpu_info on a cancelled suspend
[firefly-linux-kernel-4.4.55.git]
/
arch
/
x86
/
xen
/
suspend.c
diff --git
a/arch/x86/xen/suspend.c
b/arch/x86/xen/suspend.c
index df0c4055958379753aac957dd2c9e4c68fbaf765..7f664c416faf55672f604c5b688f6b6ef32102a8 100644
(file)
--- a/
arch/x86/xen/suspend.c
+++ b/
arch/x86/xen/suspend.c
@@
-34,7
+34,8
@@
static void xen_hvm_post_suspend(int suspend_cancelled)
{
#ifdef CONFIG_XEN_PVHVM
int cpu;
- xen_hvm_init_shared_info();
+ if (!suspend_cancelled)
+ xen_hvm_init_shared_info();
xen_callback_vector();
xen_unplug_emulated_devices();
if (xen_feature(XENFEAT_hvm_safe_pvclock)) {