From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755033Ab0EZMuW (ORCPT ); Wed, 26 May 2010 08:50:22 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:41516 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896Ab0EZMuS (ORCPT ); Wed, 26 May 2010 08:50:18 -0400 Date: Wed, 26 May 2010 13:49:29 +0100 From: Matthew Garrett To: Peter Zijlstra Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , "Rafael J. Wysocki" , Alan Stern , Dmitry Torokhov , Linux-pm mailing list , Kernel development list , Len Brown , Pavel Machek , Randy Dunlap , Andrew Morton , Andi Kleen , Cornelia Huck , Tejun Heo , Jesse Barnes , Nigel Cunningham , Ming Lei , Wu Fengguang , Maxim Levitsky , linux-doc@vger.kernel.org, Greg KH , tytso@mit.edu, James Bottomley Subject: Re: [PATCH 1/8] PM: Opportunistic suspend support. Message-ID: <20100526124929.GA32580@srcf.ucam.org> References: <201005252344.37639.rjw@sisk.pl> <1274863342.5882.4850.camel@twins> <1274863987.5882.4892.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1274863987.5882.4892.camel@twins> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While this approach could be made to work, it's ugly in other ways. After wakeup, userspace has to pause for a while before it can trigger another sleep in order to give all the apps an opportunity to check for wakeup events and block suspend if they wish to. That's additional runtime that doesn't exist in the kernel-mediated case. -- Matthew Garrett | mjg59@srcf.ucam.org