From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757304Ab0EZKTs (ORCPT ); Wed, 26 May 2010 06:19:48 -0400 Received: from ist.d-labs.de ([213.239.218.44]:46603 "EHLO mx01.d-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757159Ab0EZKTr (ORCPT ); Wed, 26 May 2010 06:19:47 -0400 Date: Wed, 26 May 2010 12:19:40 +0200 From: Florian Mickler To: Peter Zijlstra Cc: Arve =?ISO-8859-15?B?SGr4bm5lduVn?= , "Rafael J. Wysocki" , Kevin Hilman , felipe.balbi@nokia.com, Linux PM , LKML , Linux OMAP Mailing List , Tony Lindgren , Paul Walmsley Subject: Re: [PATCH 0/8] Suspend block api (version 8) Message-ID: <20100526121940.2edfd531@schatten.dmk.lab> In-Reply-To: <1274868484.5882.5176.camel@twins> References: <1274482015-30899-1-git-send-email-arve@android.com> <201005242049.18920.rjw@sisk.pl> <87wrusvrqe.fsf@deeprootsystems.com> <201005250138.16293.rjw@sisk.pl> <1274863655.5882.4875.camel@twins> <1274867106.5882.5090.camel@twins> <20100526120242.5c9b73ad@schatten.dmk.lab> <1274868484.5882.5176.camel@twins> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.9; x86_64-unknown-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 On Wed, 26 May 2010 12:08:04 +0200 Peter Zijlstra wrote: > On Wed, 2010-05-26 at 12:02 +0200, Florian Mickler wrote: > > The summary is: The device this kernel is running on dosn't want to > > (or can) rely on userspace to save power. This is because it is an open > > system, without an app-store or the like. Everyone can run what he > > wants. > > > > So anything relying on (all) userspace solves a different problem. > > So what stops an application from grabbing a suspend blocker? Well, I don't own any android devices, but If I read this all correctly, an app can request the permission to grab an suspend blocker at installation time. ("This application is requesting permission to keep the device from sleeping, thus possibly reducing your battery time. Are you shure you want to continue? [Yes,No]") every app grabbing a suspend blocker is showing up in a "these programs stop suspend" kind of battery-app and are thus well accounted for. _And the user knows who to blame_. Maybe this is implemented via fs-permissions? Anyway, I'm shure, that the access control uses a well established method. :) Cheers, Flo