Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263309AbUDAWvx (ORCPT ); Thu, 1 Apr 2004 17:51:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263229AbUDAWvX (ORCPT ); Thu, 1 Apr 2004 17:51:23 -0500 Received: from e34.co.us.ibm.com ([32.97.110.132]:29366 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S263301AbUDAWvO (ORCPT ); Thu, 1 Apr 2004 17:51:14 -0500 Subject: Re: [PATCH] mask ADT: replace cpumask_t implementation [3/22] From: Matthew Dobson Reply-To: colpatch@us.ibm.com To: Paul Jackson Cc: LKML , Andrew Morton , William Lee Irwin III In-Reply-To: <20040401124628.2d017aeb.pj@sgi.com> References: <20040329041256.0f27e8c4.pj@sgi.com> <1080611340.6742.147.camel@arrakis> <20040401072232.798d98c8.pj@sgi.com> <1080852024.9787.87.camel@arrakis> <20040401124628.2d017aeb.pj@sgi.com> Content-Type: text/plain Organization: IBM LTC Message-Id: <1080859802.9787.90.camel@arrakis> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Thu, 01 Apr 2004 14:50:02 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 714 Lines: 18 On Thu, 2004-04-01 at 12:46, Paul Jackson wrote: > Matthew suggested: > > Maybe we could #define it better on UP. Something along the lines of: > > #define cpu_online_map ({ cpumask_t up_cpu_map = { 1UL }; }) > > Yeah - I started playing with something like that too ... Cool. I think you're right about an actual cpumask_t for cpu_online_map on UP not being a great idea, but I definitely think we can do better than just #defining it to cpumask_of_cpu(0). -Matt - 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/