From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755031Ab0EZMx1 (ORCPT ); Wed, 26 May 2010 08:53:27 -0400 Received: from casper.infradead.org ([85.118.1.10]:34711 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753611Ab0EZMxZ convert rfc822-to-8bit (ORCPT ); Wed, 26 May 2010 08:53:25 -0400 Subject: Re: [PATCH 0/8] Suspend block api (version 8) From: Peter Zijlstra To: Alan Cox Cc: Arve =?ISO-8859-1?Q?Hj=F8nnev=E5g?= , "Rafael J. Wysocki" , Kevin Hilman , felipe.balbi@nokia.com, Linux PM , LKML , Linux OMAP Mailing List , Tony Lindgren , Paul Walmsley In-Reply-To: <20100526133510.6e9de670@lxorguk.ukuu.org.uk> References: <1274482015-30899-1-git-send-email-arve@android.com> <1274863655.5882.4875.camel@twins> <1274867106.5882.5090.camel@twins> <1274868593.5882.5185.camel@twins> <1274869966.5882.5262.camel@twins> <1274870970.5882.5311.camel@twins> <1274872357.27810.16.camel@twins> <20100526133510.6e9de670@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 26 May 2010 14:53:16 +0200 Message-ID: <1274878396.27810.334.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2010-05-26 at 13:35 +0100, Alan Cox wrote: > This is an area where machines are improving and where the ability to > do stuff like autosuspend, the technology like the OLPC screen and so on > create an incentive for the BIOS and platform people to improve their > bits of it. But do you think its a sensible thing to do? Explicitly not running runnable tasks just sounds wrong. Also, at the extreme end, super fast suspend is basically an efficient idle mode. Why would the code holding suspend blockers be any more or less important than any other piece of runnable code. In fact, having runnable but non suspend blocking tasks around will delay the completion of the suspend blocker, so will we start removing those? This whole thing introduces an artificial segregation of code. My 'cool' code is more important than your 'uncool' code. Without a clear definition of what makes code cool or not. > > So yes, I do think merging this will delay the effort in fixing > > userspace, simply because all the mobile/embedded folks don't care about > > it anymore. > > The mobile space probably doesn't care too much about many of the large > bloated desktop apps anyway and traditional embedded generally has a very > small fixed application set where the optimise both halves of the system > together. Sure, but at least we share the kernel. It was said that the kernel generates too many wakeups (and iwlagn certainly is the top most waker on my laptop). Improvements to the kernel will benefit all, regardless of whatever userspace we run.