From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758299AbYILWDO (ORCPT ); Fri, 12 Sep 2008 18:03:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753603AbYILWC6 (ORCPT ); Fri, 12 Sep 2008 18:02:58 -0400 Received: from ozlabs.org ([203.10.76.45]:45443 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753167AbYILWC5 (ORCPT ); Fri, 12 Sep 2008 18:02:57 -0400 From: Rusty Russell To: Mike Travis Subject: Re: [RFC] CPUMASK: proposal for replacing cpumask_t Date: Sat, 13 Sep 2008 08:02:59 +1000 User-Agent: KMail/1.9.9 Cc: Ingo Molnar , Peter Zijlstra , Andrew Morton , davej@codemonkey.org.uk, David Miller , Eric Dumazet , "Eric W. Biederman" , Jack Steiner , Jeremy Fitzhardinge , Jes Sorensen , "H. Peter Anvin" , Thomas Gleixner , linux-kernel@vger.kernel.org, Christoph Lameter , Andi Kleen References: <20080906235036.891970000@polaris-admin.engr.sgi.com> <200809121455.02180.rusty@rustcorp.com.au> <48CA7CA8.2000107@sgi.com> In-Reply-To: <48CA7CA8.2000107@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809130803.00563.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 13 September 2008 00:28:56 Mike Travis wrote: > Rusty Russell wrote: > > I'm yet to be convinced that we really need to allocate cpumasks in any > > fast paths. And if not, we should simply allocate them everywhere. I'd > > rather see one #ifdef around a place where we can show a perf issue. > > Using a typedef came from Linus, and the idea is basically if NR_CPUS fits > into a long, then it's carried as an array of one (ie., local variable). Sure it's clever. ie. nice and confusing. But do we have any code paths where we care? Unless we do, let's just keep it simple... Cheers, Rusty.