Commit 4cd821df authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] Enable swsusp on SMP machines

This enables swsusp on SMP machines. It should be working in 2.6.10,
already (but you may need noapic in 2.6.10).
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 88e19593
......@@ -141,14 +141,14 @@ static int enter_state(suspend_state_t state)
if (down_trylock(&pm_sem))
return -EBUSY;
/* Suspend is hard to get right on SMP. */
if (num_online_cpus() != 1) {
error = -EPERM;
if (state == PM_SUSPEND_DISK) {
error = pm_suspend_disk();
goto Unlock;
}
if (state == PM_SUSPEND_DISK) {
error = pm_suspend_disk();
/* Suspend is hard to get right on SMP. */
if (num_online_cpus() != 1) {
error = -EPERM;
goto Unlock;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment