Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964803Ab2EOB1s (ORCPT ); Mon, 14 May 2012 21:27:48 -0400 Received: from ozlabs.org ([203.10.76.45]:60050 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932708Ab2EOB1q (ORCPT ); Mon, 14 May 2012 21:27:46 -0400 From: Rusty Russell To: Ingo Molnar Cc: Ingo Molnar , x86@kernel.org, LKML , anton@samba.org, Arnd Bergmann , KOSAKI Motohiro , Mike Travis , Thomas Gleixner , Linus Torvalds , Al Viro Subject: Re: [PULL] cpumask: finally make them variable size w/ CPUMASK_OFFSTACK. In-Reply-To: <20120510074215.GA28395@gmail.com> References: <87ipg5c2bk.fsf@rustcorp.com.au> <20120509084453.GA6429@gmail.com> <87fwb8dgkn.fsf@rustcorp.com.au> <20120510074215.GA28395@gmail.com> User-Agent: Notmuch/0.12 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Mon, 14 May 2012 12:52:51 +0930 Message-ID: <87y5ovtpis.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1636 Lines: 47 On Thu, 10 May 2012 09:42:15 +0200, Ingo Molnar wrote: > > * Rusty Russell wrote: > > > Mainly because I didn't want to disturb the archs which don't > > care at all about large cpumasks. After all, putting a struct > > cpumask on the stack is pretty convenient. > > Yes. > > > But we could add a new arch config which removes it, and set > > it from x86. > > Could we just use a single cpumask type, cpumask_t or so, which > would be the *only* generic method to use cpumasks? > > (Current cpumask_t would move to cpumask_full_t.) > > This would be the 'final' destiation for the cpumask code: the > natural type to use in new code is cpumask_t, while in special > cases we could use cpumask_full_t - but the name signals that > it's a potentially large structure. > > On architectures that don't worry about large cpumasks (yet ...) > cpumask_t and cpumask_full_t maps to the same thing, so there's > no difference. > > This would make things more natural IMO. > > There would be no 'struct cpumask'. (and 'cpumask_var_t' would > disappear too due to the rename.) > > Thoughts? I don't understand, sorry. I think I'd need some code to understand. Unfortunately I was wrong about being able to remove struct cpumask's definition when CONFIG_CPUMASK_OFFSTACK=n: we need it for cpumask_var_t in that case :( Cheers, Rusty. -- 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/