Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753877Ab0FBGOr (ORCPT ); Wed, 2 Jun 2010 02:14:47 -0400 Received: from ist.d-labs.de ([213.239.218.44]:48630 "EHLO mx01.d-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020Ab0FBGOq (ORCPT ); Wed, 2 Jun 2010 02:14:46 -0400 Date: Wed, 2 Jun 2010 08:14:32 +0200 From: Florian Mickler To: Thomas Gleixner Cc: "Rafael J. Wysocki" , 640e9920@gmail.com, markgross@thegnar.org, Arve Hj?nnev?g , Alan Stern , Peter Zijlstra , Linux PM , Brian Swetland , Alan Cox , Matthew Garrett , LKML , Ingo Molnar Subject: Re: [PATCH] pm_qos: remove unnecessary list-traversal Message-ID: <20100602081432.7a5e5f5d@schatten.dmk.lab> In-Reply-To: References: <1275382014-10178-1-git-send-email-florian@mickler.org> <1275382331-15180-1-git-send-email-florian@mickler.org> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-pc-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 Content-Length: 1072 Lines: 37 On Tue, 1 Jun 2010 12:43:21 +0200 (CEST) Thomas Gleixner wrote: > On Tue, 1 Jun 2010, florian@mickler.org wrote: > > > The new extreme value is only depending on the old extreme value and > > the changed value. > > And how does that update to the next applicable constraint when the > current constraint is removed ? Your patch is creating a one way > decision. keeping the list sorted or using an rbtree is the answer then. if O(1) behaviour is needed maybe another constraint type could be implemented. Maybe using a bool or even a bitmap (to allow for 32 constraint-values). Is another constraint-type worthwile? > > > Signed-off-by: Florian Mickler > > --- > > This version actually compiles... :) > > That does not make it work. > > tglx indeed. Cheers, Flo -- 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/