Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220Ab0HDVjq (ORCPT ); Wed, 4 Aug 2010 17:39:46 -0400 Received: from ist.d-labs.de ([213.239.218.44]:59082 "EHLO mx01.d-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786Ab0HDVjl (ORCPT ); Wed, 4 Aug 2010 17:39:41 -0400 Date: Wed, 4 Aug 2010 23:39:24 +0200 From: Florian Mickler To: Pavel Machek Cc: "Paul E. McKenney" , Matthew Garrett , Arjan van de Ven , Arve Hj?nnev?g , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, rjw@sisk.pl, stern@rowland.harvard.edu, swetland@google.com, peterz@infradead.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk Subject: Re: Attempted summary of suspend-blockers LKML thread Message-ID: <20100804233924.5303d19a@schatten.dmk.lab> In-Reply-To: <20100804211513.GC21452@elf.ucw.cz> References: <20100731230101.7cc1d8c7@infradead.org> <20100801191228.GL2470@linux.vnet.ibm.com> <20100801154708.19817b75@infradead.org> <20100802011006.GS2470@linux.vnet.ibm.com> <20100803183447.0275c134@infradead.org> <20100804163216.GB24163@linux.vnet.ibm.com> <20100804163509.GA31523@srcf.ucam.org> <20100804204208.GA21452@elf.ucw.cz> <20100804205159.GH24163@linux.vnet.ibm.com> <20100804211513.GC21452@elf.ucw.cz> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1990 Lines: 51 On Wed, 4 Aug 2010 23:15:13 +0200 Pavel Machek wrote: > Hi! > > > > > > If this doesn't work for the Android folks for whatever reason, another > > > > > approach would be to do the freeze in user code, which could track > > > > > whether any user-level resources (pthread mutexes, SysV semas, whatever) > > > > > where held, and do the freeze on a thread-by-thread basis within each > > > > > "victim" application as the threads reach safe points. > > > > > > > > The main problem I see with the cgroups solution is that it doesn't seem > > > > to do anything to handle avoiding loss of wakeup events. > > > > > > In different message, Arve said they are actually using low-power idle > > > to emulate suspend on Android. > > > > Hello, Pavel, > > > > Could you please point me at this message? > > AFAICT, this tells us that idle and suspend is the same hardware state > on current Android hardware: > Pavel > > Message-ID: > > Arve said: > > If you just program the alarm you will wake up see that the monotonic > clock has not advanced and set the alarm another n seconds into the > future. Or are proposing that suspend should be changed to keep the > monotonic clock running? If you are, why? We can enter the same > hardware states from idle, and modifying suspend to wake up more often > would increase the average power consumption in suspend, not improve > it for idle. In other words, if suspend wakes up as often as idle, why > use suspend? > > They always told us from the beginning, that on the msm platform they reach the same powerlevel from suspend and idle. They still get gains from using opportunistic suspend. Cheers, Flo -- 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/