Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753891Ab0AINkN (ORCPT ); Sat, 9 Jan 2010 08:40:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752410Ab0AINkM (ORCPT ); Sat, 9 Jan 2010 08:40:12 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:54329 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869Ab0AINkL (ORCPT ); Sat, 9 Jan 2010 08:40:11 -0500 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: [suspend/resume] Re: userspace notification from module Date: Sat, 9 Jan 2010 14:40:46 +0100 User-Agent: KMail/1.12.3 (Linux/2.6.33-rc3-rjw; KDE/4.3.3; x86_64; ; ) Cc: "Bart?omiej Zimo?" , Andy Walls , Daniel Borkmann , linux-kernel@vger.kernel.org References: <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl> <201001022201.04281.rjw@sisk.pl> <20100109103212.GA1429@ucw.cz> In-Reply-To: <20100109103212.GA1429@ucw.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001091440.46434.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 25 On Saturday 09 January 2010, Pavel Machek wrote: > > > Just need as fast as possible solution and on the other hand acceptable for kernel sources. > > > Usually programs needs just to disconnect something or set one flag. > > > Even if program will have no time for this it could be enough just to send this precious info. > > > > Perhaps I don't understand correctly what you're trying to achieve, but at the > > moment suspend is always started from user space, this way or another, and on > > At least zaurus (arm) suspends from kernel on battery critical. I wasn't aware of this. That may be a good reason for adding kernel-based suspend notification, although I'd prefer ARM to notify the user space about the critical battery status allowing it to decide what to do. IMhO automatic suspend without something like the Android's wakelocks hurts more than it helps. 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/