Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756885Ab0HNPLD (ORCPT ); Sat, 14 Aug 2010 11:11:03 -0400 Received: from e4.ny.us.ibm.com ([32.97.182.144]:51850 "EHLO e4.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753084Ab0HNPLC (ORCPT ); Sat, 14 Aug 2010 11:11:02 -0400 Date: Sat, 14 Aug 2010 08:10:48 -0700 From: "Paul E. McKenney" To: Pavel Machek Cc: Alan Cox , Felipe Contreras , "Ted Ts'o" , david@lang.hm, Brian Swetland , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, arve@android.com, mjg59@srcf.ucam.org, florian@mickler.org, rjw@sisk.pl, stern@rowland.harvard.edu, peterz@infradead.org, tglx@linutronix.de, menage@google.com, david-b@pacbell.net, James.Bottomley@suse.de, arjan@infradead.org, swmike@swm.pp.se, galibert@pobox.com, dipankar@in.ibm.com Subject: Re: Attempted summary of suspend-blockers LKML thread, take three Message-ID: <20100814151048.GA2461@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20100809181638.GI3026@linux.vnet.ibm.com> <20100811222854.GJ2516@linux.vnet.ibm.com> <20100812010612.GL2516@linux.vnet.ibm.com> <20100812034435.GA7403@linux.vnet.ibm.com> <20100813115751.3bbbafbd@lxorguk.ukuu.org.uk> <20100813152912.GE2511@linux.vnet.ibm.com> <20100814073843.GA27430@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100814073843.GA27430@elf.ucw.cz> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1627 Lines: 36 On Sat, Aug 14, 2010 at 09:38:44AM +0200, Pavel Machek wrote: > Hi! > > > > > > Think in terms of an ARM laptop. What good is opportunistic suspend if > > > > > it's not going to help when the laptop is being used? > > > > > > > > For when the laptop is not being used, presumably. > > > > > > Or in time between keystrokes for most of the platform (backlight > > > excepted). The Intel MID x86 devices are at the point that suspend/resume > > > time on x86 is being hurt by the kernel rewriting smp alternatives as we > > > go from 2 processors live to 1 and back. > > > > Given that you are talking about going from 2 processors to 1 and back, > > I would guess that you are not actually talking about suspend/resume, > > which is a system-wide thing rather than a CPU-by-CPU thing. I am not > > sure whether you are using CPU hotplug or invoking SMP alternatives once > > all but one CPU is idle. > > When entering system suspend, we disable non-boot-CPUs to simplify > locking. We reenable them when going out of suspend. Thank you for the info, Pavel! So once you are down to one CPU, the last CPU shuts the system off, itself included? Or does the last CPU "run" in a deep idle state throughout suspend? (My guess is the former, and I am also curious whether the cache SRAMs are powered off, etc. But figured I should ask rather than guessing.) Thanx, Paul -- 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/