Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754382Ab0FHJKK (ORCPT ); Tue, 8 Jun 2010 05:10:10 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:37251 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753021Ab0FHJKI convert rfc822-to-8bit (ORCPT ); Tue, 8 Jun 2010 05:10:08 -0400 From: "Rafael J. Wysocki" To: Arve =?iso-8859-1?q?Hj=F8nnev=E5g?= Subject: Re: suspend blockers & Android integration Date: Tue, 8 Jun 2010 11:11:39 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.35-rc1-rjw; KDE/4.3.5; x86_64; ; ) Cc: Thomas Gleixner , Peter Zijlstra , Ingo Molnar , tytso@mit.edu, Brian Swetland , Neil Brown , Alan Stern , Felipe Balbi , LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley , Linus Torvalds , Kevin Hilman , "H. Peter Anvin" , Arjan van de Ven , Andrew Morton References: <20100603193045.GA7188@elte.hu> <201006061555.38526.rjw@sisk.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-Id: <201006081111.39333.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1595 Lines: 35 On Tuesday 08 June 2010, Arve Hj?nnev?g wrote: > 2010/6/6 Rafael J. Wysocki : > > On Sunday 06 June 2010, Arve Hj?nnev?g wrote: ... > If individual processes are frozen, we run into problems that we > cannot run into if we freeze and thaw all processes. Not individual processes, but the processes that don't use wakelocks in the Android world all together. And of course the approach has to be different, because it's a different design, but I don't think there are any fundamental issues you can't solve within this approach. > >> The app that reads this event blocks suspend before reading it. If it was > >> busy talking to a less trusted app when the event happened it still works > >> since all apps are running at this point. > > > > And how is this different from an approach with cgroup freezing? Apps that > > use wakelock within the current framework would use "freeze locks" to prevent > > the "untrusted" part of user space from being frozen or to thaw it. Where's > > the problem, then? > > > > They will not be able to get wakeup events directly from the kernel. > If the kernel does not thaw processes when a wakeup event happens, the > app may never get to the point where it grabs its wakelock. The apps that use "freeze locks" (or wakelocks) are never frozen, so I don't think this would be a problem. Rafael -- 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/