Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752877Ab0HBBL5 (ORCPT ); Sun, 1 Aug 2010 21:11:57 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:59317 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493Ab0HBBLw (ORCPT ); Sun, 1 Aug 2010 21:11:52 -0400 Date: Sun, 1 Aug 2010 18:11:48 -0700 From: "Paul E. McKenney" To: James Bottomley Cc: Arjan van de Ven , peterz@infradead.org, swetland@google.com, linux-kernel@vger.kernel.org, florian@mickler.org, linux-pm@lists.linux-foundation.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk Subject: Re: [linux-pm] Attempted summary of suspend-blockers LKML thread Message-ID: <20100802011148.GT2470@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20100731175841.GA9367@linux.vnet.ibm.com> <20100731215214.2543c07e@infradead.org> <20100801054816.GI2470@linux.vnet.ibm.com> <1280704593.25620.48.camel@mulgrave.site> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1280704593.25620.48.camel@mulgrave.site> 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: 3057 Lines: 65 On Sun, Aug 01, 2010 at 06:16:33PM -0500, James Bottomley wrote: > On Sat, 2010-07-31 at 22:48 -0700, Paul E. McKenney wrote: > > On Sat, Jul 31, 2010 at 09:52:14PM -0700, Arjan van de Ven wrote: > > > On Sat, 31 Jul 2010 10:58:42 -0700 > > > "Paul E. McKenney" wrote: > > > > > > > o "Power-aware application" are applications that are permitted > > > > to acquire suspend blockers on Android. Verion 8 of the > > > > suspend-blocker patch seems to use group permissions to > > > > determine which applications are classified as power aware. > > > > > > > > More generally, power-aware applications seem to be those that > > > > have permission to exert some control over the system's > > > > power state. > > > > > > I don't like the term "Power aware application". An application is well > > > behaved or it isn't. "aware" has nothing to do with it. > > > > Applications are often complex enough to be aware of some things, naive > > about others, well behaved in some ways, and ill-behaved in others. > > This has been the case for some decades now, so it should not come as > > a surprise. > > > > I am of course open to suggestions for alternatives to the term "power > > aware application", but most definitely not to obfuscating the difference > > between power awareness (or whatever name one wishes to call it) and > > the overall quality of the application, whatever "quality" might mean > > in a given context. > > So the reason everyone's having trouble with this definition is that it > actually conflates two separate axes of power management. > > There are good and bad applications in the power sense ... burns less vs > burns more. > > And there are user mandated vs user optional processes ... > necessary/wanted vs unnecessary/unwanted. > > What android actually does is reward well written applications because > they "just work" and they don't have to be power aware at all ... > they're usually event driven and split into the android > provider/consumer model. > > Badly written applications that are not suspend block aware get shut > down (by system suspend) when the screen turns off, so they're also > power/suspend unaware. > > Applications that want to present the user with a choice in android are > power/suspend aware because the only way they get to present the choice > is via suspend blockers. > > The "power problem" always devolves to resolving a set of choices around > a given set of control axes. The problem is that the set of control > axes isn't unique and doesn't have a well agreed upon selection. This > makes it hard to make definitive terminology because you have to pick > the set of axes (implicitly or explicitly) before defining terms ... That does seem to be about the size of it... :-/ 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/