Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753492AbYLAXCu (ORCPT ); Mon, 1 Dec 2008 18:02:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751114AbYLAXCk (ORCPT ); Mon, 1 Dec 2008 18:02:40 -0500 Received: from tundra.namei.org ([65.99.196.166]:32976 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbYLAXCk (ORCPT ); Mon, 1 Dec 2008 18:02:40 -0500 Date: Tue, 2 Dec 2008 10:02:18 +1100 (EST) From: James Morris To: Rusty Russell cc: linux-kernel@vger.kernel.org, Mike Travis , Ingo Molnar , Eric Biederman , Ingo Molnar , Eric Biederman Subject: Re: [PATCH 1/2] cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: core In-Reply-To: <200812011841.27839.rusty@rustcorp.com.au> Message-ID: References: <200812011841.27839.rusty@rustcorp.com.au> User-Agent: Alpine 1.10 (LRH 962 2008-03-14) 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: 899 Lines: 29 On Mon, 1 Dec 2008, Rusty Russell wrote: > > Impact: cleanup > > In future, all cpumask ops will only be valid (in general) for bit > numbers < nr_cpu_ids. So use that instead of NR_CPUS in iterators > and other comparisons. > > This is always safe: no cpu number can be >= nr_cpu_ids, and > nr_cpu_ids is initialized to NR_CPUS at boot. > > Signed-off-by: Rusty Russell > Signed-off-by: Mike Travis > Acked-by: Ingo Molnar > Cc: Eric Biederman > Cc: James Morris Acked-by: James Morris -- James Morris -- 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/