Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174430
b: refs/heads/master
c: 65f6338
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Jeremy Fitzhardinge committed Dec 3, 2009
1 parent 58e9bcc commit 82e7d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fed5ea87e02aaf902ff38c65b4514233db03dc09
refs/heads/master: 65f63384b391bf4d384327d8a7c6de9860290b5c
20 changes: 11 additions & 9 deletions trunk/drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,32 @@ static void do_suspend(void)
err = freeze_processes();
if (err) {
printk(KERN_ERR "xen suspend: freeze failed %d\n", err);
return;
goto out;
}
#endif

err = dpm_suspend_start(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "xen suspend: dpm_suspend_start %d\n", err);
goto out;
goto out_thaw;
}

printk(KERN_DEBUG "suspending xenstore...\n");
xs_suspend();

err = dpm_suspend_noirq(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "dpm_suspend_noirq failed: %d\n", err);
goto resume_devices;
goto out_resume;
}

printk(KERN_DEBUG "suspending xenstore...\n");
xs_suspend();

err = stop_machine(xen_suspend, &cancelled, cpumask_of(0));

dpm_resume_noirq(PMSG_RESUME);

if (err) {
printk(KERN_ERR "failed to start xen_suspend: %d\n", err);
goto out;
cancelled = 1;
}

if (!cancelled) {
Expand All @@ -120,15 +120,17 @@ static void do_suspend(void)
} else
xs_suspend_cancel();

resume_devices:
out_resume:
dpm_resume_end(PMSG_RESUME);

/* Make sure timer events get retriggered on all CPUs */
clock_was_set();
out:

out_thaw:
#ifdef CONFIG_PREEMPT
thaw_processes();
#endif
out:
shutting_down = SHUTDOWN_INVALID;
}
#endif /* CONFIG_PM_SLEEP */
Expand Down

0 comments on commit 82e7d66

Please sign in to comment.