diff options
Diffstat (limited to 'drivers/xen/manage.c')
-rw-r--r-- | drivers/xen/manage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 1ac94125bf9..0b5366b5be2 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <linux/sysrq.h> | 8 | #include <linux/sysrq.h> |
9 | #include <linux/stop_machine.h> | 9 | #include <linux/stop_machine.h> |
10 | #include <linux/freezer.h> | 10 | #include <linux/freezer.h> |
11 | #include <linux/syscore_ops.h> | ||
11 | 12 | ||
12 | #include <xen/xen.h> | 13 | #include <xen/xen.h> |
13 | #include <xen/xenbus.h> | 14 | #include <xen/xenbus.h> |
@@ -69,9 +70,9 @@ static int xen_suspend(void *data) | |||
69 | 70 | ||
70 | BUG_ON(!irqs_disabled()); | 71 | BUG_ON(!irqs_disabled()); |
71 | 72 | ||
72 | err = sysdev_suspend(PMSG_FREEZE); | 73 | err = syscore_suspend(); |
73 | if (err) { | 74 | if (err) { |
74 | printk(KERN_ERR "xen_suspend: sysdev_suspend failed: %d\n", | 75 | printk(KERN_ERR "xen_suspend: system core suspend failed: %d\n", |
75 | err); | 76 | err); |
76 | return err; | 77 | return err; |
77 | } | 78 | } |
@@ -95,7 +96,7 @@ static int xen_suspend(void *data) | |||
95 | xen_timer_resume(); | 96 | xen_timer_resume(); |
96 | } | 97 | } |
97 | 98 | ||
98 | sysdev_resume(); | 99 | syscore_resume(); |
99 | 100 | ||
100 | return 0; | 101 | return 0; |
101 | } | 102 | } |