[S390] cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Mar 2009 14:24:59 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:33 +0000 (15:24 +0100)
commit93632d1bf7447d445c6fc274c8931152f9412b56
tree92034c77deb9dff69e62224acb6f7b2e40acc3dc
parent6f7a321d5feb0bc9aa7f7b14eceb1e6a63bff937
[S390] cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.

Impact: cleanup, futureproof

In fact, all cpumask ops will only be valid (in general) for bit
numbers < nr_cpu_ids.  So use that instead of NR_CPUS in various
places (I also updated the immediate sites to use the new cpumask_
operators).

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@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c