From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark gross <640e9920@gmail.com> Subject: Re: [linux-pm] [PATCH] - race-free suspend. Was: Re: [PATCH 0/8] Suspend block api (version 8) Date: Thu, 3 Jun 2010 06:36:46 -0700 Message-ID: <20100603133646.GF15595@gvim.org> References: <20100601113309.609349fd@notabene.brown> <20100601122012.1edeaf48@notabene.brown> <20100602153235.340a7852@notabene.brown> <20100602180614.729246ea@notabene.brown> <20100603060444.GF11311@gvim.org> Reply-To: markgross@thegnar.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pz0-f185.google.com ([209.85.222.185]:49191 "EHLO mail-pz0-f185.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479Ab0FCNge (ORCPT ); Thu, 3 Jun 2010 09:36:34 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Brian Swetland Cc: markgross@thegnar.org, Neil Brown , Peter Zijlstra , "Paul@smtp1.linux-foundation.org" , LKML , Florian Mickler , James Bottomley , Linux PM , Thomas Gleixner , Linux OMAP Mailing List , Felipe Balbi , Alan Cox On Wed, Jun 02, 2010 at 11:12:39PM -0700, Brian Swetland wrote: > On Wed, Jun 2, 2010 at 11:04 PM, mark gross <640e9920@gmail.com> wrote: > >> > >> There are many wakeup events possible in a typical system -- > >> keypresses or other input events, network traffic, telephony events, > >> media events (fill audio buffer, fill video decoder buffer, etc), and > >> I think requiring that all wakeup event processing bottleneck through > >> a single userspace process is non-optimal here. > > > > Um doesn't the android framework bottleneck the user mode lock > > processing through the powermanager and any wake up event processing > > eventually has to grab a lock through this bottleneck anyway? > > For "high level" framework/application level wakelocks, yes, but lower > level components beneath the java api layer use the kernel interface > directly. > Oh. I thought everything went through hardware/libhardware_legacy/power/power.c who else is hitting /sys/power/* in the android user mode then? I'll have to go hunting for them I guess. --mgross