Re: Enable swsusp on SMP machines

2005-01-25 Thread Pavel Machek
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) { > > -

Re: Enable swsusp on SMP machines

2005-01-24 Thread Matthew Garrett
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

Enable swsusp on SMP machines

2005-01-24 Thread Pavel Machek
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