Re: [PATCH 1/2] cpumask: prepare for iterators to only go tonr_cpu_ids/nr_cpumask_bits.: core

From: James Morris
Date: Mon Dec 01 2008 - 18:02:52 EST

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 <rusty@xxxxxxxxxxxxxxx>
> Signed-off-by: Mike Travis <travis@xxxxxxx>
> Acked-by: Ingo Molnar <mingo@xxxxxxx>
> Cc: Eric Biederman <ebiederm@xxxxxxxxxxxx>
> Cc: James Morris <jmorris@xxxxxxxxx>

Acked-by: James Morris <jmorris@xxxxxxxxx>

James Morris
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at