From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Date: Wed, 02 Jun 2010 12:21:28 +0200 Message-ID: <1275474088.27810.31000.camel@twins> References: <201005302202.39511.rjw@sisk.pl> <201005312347.24251.rjw@sisk.pl> <1275471561.27810.30865.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Arve =?ISO-8859-1?Q?Hj=F8nnev=E5g?= Cc: Thomas Gleixner , "Rafael J. Wysocki" , Florian Mickler , Matthew Garrett , Alan Stern , Paul@smtp1.linux-foundation.org, LKML , felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM , Alan Cox List-Id: linux-omap@vger.kernel.org On Wed, 2010-06-02 at 03:00 -0700, Arve Hj=C3=B8nnev=C3=A5g wrote: > 2010/6/2 Peter Zijlstra : > > On Wed, 2010-06-02 at 01:54 -0700, Arve Hj=C3=B8nnev=C3=A5g wrote: > >> No I want you to stop confusing low power idle modes with suspend. > > > > I think it is you who is confused. For power management purposes su= spend > > is nothing more but a deep idle state. >=20 > No, idle is transparent, suspend is not. Which is where the problem is, it should be. > Why would I add suspend blockers to the code I want to prevent runnin= g? Because what you want might not be what others want. Suppose you're fin= e with your torrent client/irc client/etc.. to loose their network connection when you're not behind your desktop so you don't add suspend blockers there. Me, I'd be ready to administer physical violence if either of those los= t their connections when I wasn't around to keep the screen-saver from kicking in. This leads to having to sprinkle magic dust (and lots of config options= ) all over userspace. Something that gets esp interesting with only a boolean interface. In the example above, having an active net connection would prevent my desktop from suspending, but what if another platform can maintain net connections while suspended? Do we then end up with arch specific code in the net-stack? I'm sure DaveM would love that.