Re: Fix up power managment in 2.6

bill davidsen
2003-09-03T18:09:26Z

In article <20030903174904.GH30629@atrey.karlin.mff.cuni.cz>,
Pavel Machek <pavel@suse.cz> wrote:
| Hi!
|
| > > -void software_resume(void)
| > > +int __init swsusp_restore(void)
| > > {
| > > - if (num_online_cpus() > 1) {
| > > - printk(KERN_WARNING "Software Suspend has
| > > malfunctioning SMP support. Disabled :(\n");
| > > - return;
| > > - }
| > >
| > > I can not easily see where you moved this check.
| >
| > Read the rest of the patches, and the changelogs (I do believe it's in
| > them). It's in kernel/power/main.c::enter_state(), so all PM handlers can
| > use it.
|
| Notice that this is done during resume. You are free to suspend with 1
| cpu, then attempt to resume with 2 cpus. Not *too* likely to happen,
| but....

Would it matter if you did? Unless you are running an SMP kernel? I
guess at some point the laptop CPUs will have HT, and SMP will be more
of an issue than it is now.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.