From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757491Ab0EZRyt (ORCPT ); Wed, 26 May 2010 13:54:49 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:43618 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753830Ab0EZRys (ORCPT ); Wed, 26 May 2010 13:54:48 -0400 Date: Wed, 26 May 2010 19:02:04 +0100 From: Alan Cox To: Thomas Gleixner Cc: Florian Mickler , Vitaly Wool , Peter Zijlstra , LKML , felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Message-ID: <20100526190204.5efe4d59@lxorguk.ukuu.org.uk> In-Reply-To: References: <20100526171106.0e44a736@schatten.dmk.lab> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The power efficiency of a mobile device is depending on a sane overall > software stack and not on the ability to mitigate crappy software in > some obscure way which is prone to malfunction and disappoint users. Even if you believe the kernel should be containing junk the model that works and is used for everything else is resource management. Not giving various tasks the ability to override rules, otherwise you end up needing suspend blocker blockers next week. A model based on the idea that a task can set its desired wakeup behaviour *subject to hard limits* (ie soft/hard process wakeup) works both for the sane system where its elegantly managing hard RT, and for the crud where you sandbox it to stop it making a nasty mess. Do we even need a syscall or will adding RLIMIT_WAKEUP or similar do the trick ? Alan