Re: Enable swsusp on SMP machines

From: Matthew Garrett
Date: Mon Jan 24 2005 - 13:33:30 EST


Pavel Machek <pavel@xxxxxx> wrote:

> - /* 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;
> }

Are you sure about this?

--
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/