Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264115AbTICSJ0 (ORCPT ); Wed, 3 Sep 2003 14:09:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264158AbTICSIG (ORCPT ); Wed, 3 Sep 2003 14:08:06 -0400 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:44046 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id S264115AbTICSHv (ORCPT ); Wed, 3 Sep 2003 14:07:51 -0400 To: linux-kernel@vger.kernel.org Path: gatekeeper.tmr.com!davidsen From: davidsen@tmr.com (bill davidsen) Newsgroups: mail.linux-kernel Subject: Re: Fix up power managment in 2.6 Date: 3 Sep 2003 17:59:09 GMT Organization: TMR Associates, Schenectady NY Message-ID: References: <20030902094701.GD145@elf.ucw.cz> <20030903174904.GH30629@atrey.karlin.mff.cuni.cz> X-Trace: gatekeeper.tmr.com 1062611949 8552 192.168.12.62 (3 Sep 2003 17:59:09 GMT) X-Complaints-To: abuse@tmr.com Originator: davidsen@gatekeeper.tmr.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 30 In article <20030903174904.GH30629@atrey.karlin.mff.cuni.cz>, Pavel Machek 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 CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/