aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/manage.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2009-02-09 15:05:50 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-03-30 12:26:56 -0400
commitde5b31bd47de7e6f41be2e271318dbc8f1af354d (patch)
treed222e4ce03706e5047b78e060f85ed0b31727eaa /drivers/xen/manage.c
parenta1ce1be578365a4da7e7d7db4812539d2d5da763 (diff)
xen: use device model for suspending xenbus devices
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen/manage.c')
-rw-r--r--drivers/xen/manage.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index b703dd2c9f11..5269bb4d2496 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -104,9 +104,8 @@ static void do_suspend(void)
104 goto out; 104 goto out;
105 } 105 }
106 106
107 printk("suspending xenbus...\n"); 107 printk(KERN_DEBUG "suspending xenstore...\n");
108 /* XXX use normal device tree? */ 108 xs_suspend();
109 xenbus_suspend();
110 109
111 err = stop_machine(xen_suspend, &cancelled, cpumask_of(0)); 110 err = stop_machine(xen_suspend, &cancelled, cpumask_of(0));
112 if (err) { 111 if (err) {
@@ -116,9 +115,9 @@ static void do_suspend(void)
116 115
117 if (!cancelled) { 116 if (!cancelled) {
118 xen_arch_resume(); 117 xen_arch_resume();
119 xenbus_resume(); 118 xs_resume();
120 } else 119 } else
121 xenbus_suspend_cancel(); 120 xs_suspend_cancel();
122 121
123 device_resume(PMSG_RESUME); 122 device_resume(PMSG_RESUME);
124 123