Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbZIXAzK (ORCPT ); Wed, 23 Sep 2009 20:55:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752857AbZIXAzI (ORCPT ); Wed, 23 Sep 2009 20:55:08 -0400 Received: from gate.crashing.org ([63.228.1.57]:45103 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbZIXAzH (ORCPT ); Wed, 23 Sep 2009 20:55:07 -0400 Subject: Re: [PATCH v3 0/3] cpu: pseries: Cpu offline states framework From: Benjamin Herrenschmidt To: Heiko Carstens Cc: Balbir Singh , Peter Zijlstra , Gautham R Shenoy , Joel Schopp , Venkatesh Pallipadi , Dipankar Sarma , Vaidyanathan Srinivasan , Arun R Bharadwaj , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Darrick J. Wong" In-Reply-To: <20090916074848.GB4870@osiris.boeblingen.de.ibm.com> References: <20090915120629.20523.79019.stgit@sofia.in.ibm.com> <1253016701.5506.73.camel@laptop> <20090915145834.GG4846@balbir.in.ibm.com> <20090916074848.GB4870@osiris.boeblingen.de.ibm.com> Content-Type: text/plain Date: Thu, 24 Sep 2009 10:52:46 +1000 Message-Id: <1253753566.7103.359.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 24 On Wed, 2009-09-16 at 09:48 +0200, Heiko Carstens wrote: > FWIW, this sounds exactly like the same we have already on s390. > But back then I didn't consider adding a common code infrastructure > would make sense :) > > Besides the "online" attribute we have an additional "configure" > attribute to which can only be written if the cpu is offline. > Writing a "0" to it would mean that you currently won't need the cpu > anymore and the hypervisor is free to reassign the cpu to a different > LPAR. > Writing a "1" to it means you want to use it. If there are enough > resources you will get it. If not.. bad luck. > Maybe we should use a common API for that then. And the right way to do so is via a generically located attribute. Ben. -- 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/