Skip to content

Commit

Permalink
Merge branch 'for-linus/bugfixes' of git://xenbits.xensource.com/peop…
Browse files Browse the repository at this point in the history
…le/ianc/linux-2.6

* 'for-linus/bugfixes' of git://xenbits.xensource.com/people/ianc/linux-2.6:
  xen: fix hang on suspend.
  • Loading branch information
Linus Torvalds committed Jan 14, 2010
2 parents 004b350 + c5cae66 commit 4f37442
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ static void do_suspend(void)
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 out_resume;
}

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

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

dpm_resume_noirq(PMSG_RESUME);
Expand All @@ -120,13 +120,13 @@ static void do_suspend(void)
cancelled = 1;
}

out_resume:
if (!cancelled) {
xen_arch_resume();
xs_resume();
} else
xs_suspend_cancel();

out_resume:
dpm_resume_end(PMSG_RESUME);

/* Make sure timer events get retriggered on all CPUs */
Expand Down

0 comments on commit 4f37442

Please sign in to comment.