From patchwork Wed Jan 7 09:46:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Lynch X-Patchwork-Id: 17075 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 856C4DE5B0 for ; Wed, 7 Jan 2009 20:47:55 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from sasl.smtp.pobox.com (a-sasl-quonix.sasl.smtp.pobox.com [208.72.237.25]) by ozlabs.org (Postfix) with ESMTP id 055AFDE2C1 for ; Wed, 7 Jan 2009 20:46:26 +1100 (EST) Received: from localhost.localdomain (unknown [127.0.0.1]) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 2D5641BFDA; Wed, 7 Jan 2009 04:46:14 -0500 (EST) Received: from thinkcentre (unknown [67.9.156.46]) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPA id 9EE711BFD9; Wed, 7 Jan 2009 04:46:12 -0500 (EST) Date: Wed, 7 Jan 2009 03:46:11 -0600 From: Nathan Lynch To: Benjamin Herrenschmidt Subject: Re: [PATCH/RFC] sysfs cache code rewrite Message-ID: <20090107094611.GD7376@localdomain> References: <20081224045554.GA6958@localdomain> <20090106212533.GB7376@localdomain> <1231311102.14860.80.camel@pasglop> <1231311324.14860.81.camel@pasglop> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1231311324.14860.81.camel@pasglop> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: 05D56252-DCA0-11DD-BDAF-EB51113D384A-04752483!a-sasl-quonix.pobox.com Cc: linuxppc-dev@ozlabs.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Benjamin Herrenschmidt wrote: > > > I don't know quite the detail of the new cpumask stuff ... It could be > > as simple as passing a pointer instead of the value in the > > cpumask_scnprintf call though... > > Actually, I'll do more tests and if that ends up being the only needed > change, I'll push your patch with that small change out to powerpc next > tonight. Sorry about that, here's an incremental... let me know if you want the whole thing re-posted. Thanks. diff --git a/arch/powerpc/kernel/cacheinfo.c b/arch/powerpc/kernel/cacheinfo.c index f3e3ae3..b33f041 100644 --- a/arch/powerpc/kernel/cacheinfo.c +++ b/arch/powerpc/kernel/cacheinfo.c @@ -611,7 +611,7 @@ static ssize_t shared_cpu_map_show(struct kobject *k, struct kobj_attribute *att len = PAGE_SIZE - 2; if (len > 1) { - n = cpumask_scnprintf(buf, len, cache->shared_cpu_map); + n = cpumask_scnprintf(buf, len, &cache->shared_cpu_map); buf[n++] = '\n'; buf[n] = '\0'; }