Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263860AbTICRtI (ORCPT ); Wed, 3 Sep 2003 13:49:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263842AbTICRtI (ORCPT ); Wed, 3 Sep 2003 13:49:08 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:5844 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id S263860AbTICRtF (ORCPT ); Wed, 3 Sep 2003 13:49:05 -0400 Date: Wed, 3 Sep 2003 19:49:04 +0200 From: Pavel Machek To: Patrick Mochel Cc: Linus Torvalds , kernel list Subject: Re: Fix up power managment in 2.6 Message-ID: <20030903174904.GH30629@atrey.karlin.mff.cuni.cz> References: <20030902094701.GD145@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 975 Lines: 29 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.... Pavel -- Horseback riding is like software... ...vgf orggre jura vgf serr. - 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/