Hi!
> > - /* 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) {
> > -
Pavel Machek <[EMAIL PROTECTED]> 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
Hi!
This enables swsusp on SMP machines. It should be working in 2.6.10,
already (but you may need noapic in 2.6.10). Please apply,
Pavel
--- /data/l/READ-ONLY/linux/kernel/power/main.c 2005-01-16 23:10:29.0
+0100
+++ linux
3 matches
Mail list logo