Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754339AbYGYA1a (ORCPT ); Thu, 24 Jul 2008 20:27:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752543AbYGYA1W (ORCPT ); Thu, 24 Jul 2008 20:27:22 -0400 Received: from relay2.sgi.com ([192.48.171.30]:51475 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752193AbYGYA1W (ORCPT ); Thu, 24 Jul 2008 20:27:22 -0400 Message-ID: <48891DDF.7090903@sgi.com> Date: Thu, 24 Jul 2008 17:27:11 -0700 From: Mike Travis User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: Bert Wesarg CC: Ingo Molnar , Rusty Russell , Andrew Morton , "H. Peter Anvin" , Jack Steiner , Christoph Lameter , linux-kernel@vger.kernel.org, Len Brown , Lennert Buytenhek , Dave Jones , Paul Jackson , Tony Luck , Tigran Aivazian , Paul Mackerras , Benjamin Herrenschmidt , Robert Richter , Martin Schwidefsky , Heiko Carstens , Sam Creasey , Greg Banks , "Eric W. Biederman" , Adrian Bunk , Thomas Gleixner , Andreas Schwab , Johannes Weiner Subject: Re: [PATCH 1/1] cpumask: Change cpumask_of_cpu to use cpumask_of_cpu_map References: <20080723171841.815234000@polaris-admin.engr.sgi.com> <20080723171841.997896000@polaris-admin.engr.sgi.com> <36ca99e90807240556j6b409a03s239d781baaadbb99@mail.gmail.com> <4888B89E.9010708@sgi.com> In-Reply-To: <4888B89E.9010708@sgi.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 655 Lines: 19 Mike Travis wrote: > Bert Wesarg wrote: : > > .... Second, why do you want to set the last unsigned long to >> one? Shouldn't this be the first? > > The MSB of the cpumask is the highest numbered cpu, the LSB is the lowest. > (Caught me early on as well.) Forget what I said. I was thinking of how the cpumask_scnprintf prints out the cpumask and assumed (incorrectly) the bit layout was the same. Mike -- 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/