From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH 0/8] Suspend block api (version 6) Date: Sun, 16 May 2010 01:51:09 +0200 Message-ID: <201005160151.09964.rjw@sisk.pl> References: <1272667021-21312-1-git-send-email-arve@android.com> <201005152147.22122.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Brian Swetland Cc: Greg Kroah-Hartman , Jesse Barnes , linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, Arjan van de Ven , Matthew Garrett , Len Brown , Jacob Pan , Oleg Nesterov , Liam Girdwood , linux-omap@vger.kernel.org, Linus Walleij , Daniel Walker , Theodore Ts'o , Mark Brown , Geoff Smith , Tejun Heo , Andrew Morton , Wu Fengguang List-Id: linux-pm@vger.kernel.org On Saturday 15 May 2010, Brian Swetland wrote: > On Sat, May 15, 2010 at 12:47 PM, Rafael J. Wysocki wrote: > >> > > >> > Yes, "excruciatingly bad" apps can kill PM on these systems since > >> > anyone can write apps, but the same is true on an opporunistic-suspend > >> > based system since any app could hold a suspend blocker whenever it > >> > wants. > >> > >> No, apps need permission to block suspend. > > > > Are you referring to the fact the permissions of the special device file or > > something different? > > The special device file will have filesystem permissions that limit > access to system services. > > Arbitrary userspace apps do not have direct access to the device -- > they use a service (provided by binder rpc), and the app must declare > its intent (and the user accept this on install) in order to use that > service. On Android, right? > The service keeps track of usage stats so if a user > experiences poor battery life they can look at the battery usage thing > and see which apps are keeping the device awake, etc. That sounds like it should go into a doc or at least into the changelog of patch [2/8] IMnsHO. The thing you said about timers in one of the previous messages should be documented too, BTW, because it's one of the motivation factors for this work. In general, I think the motivation is not explained sufficienty in the patches' changelogs and that's one of the reasons why people have so many doubts about the feature's usefulness. Thanks, Rafael