aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-26 10:25:00 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 10:24:33 -0400
commitdef6cfb70bab83c0094bc0cedd27c4eda563043e (patch)
treeae3fd1d16141a82b82a41268c130013bf04d162c
parent93632d1bf7447d445c6fc274c8931152f9412b56 (diff)
[S390] cpumask: Use accessors code.
Impact: use new API Use the accessors rather than frobbing bits directly. Most of this is in arch code I haven't even compiled, but is straightforward. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/kernel/smp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 13052a4ed71d..006ed5016eb4 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -590,9 +590,8 @@ static int __init setup_possible_cpus(char *s)
590 int pcpus, cpu; 590 int pcpus, cpu;
591 591
592 pcpus = simple_strtoul(s, NULL, 0); 592 pcpus = simple_strtoul(s, NULL, 0);
593 cpu_possible_map = cpumask_of_cpu(0); 593 for (cpu = 0; cpu < pcpus && cpu < nr_cpu_ids; cpu++)
594 for (cpu = 1; cpu < pcpus && cpu < nr_cpu_ids; cpu++) 594 set_cpu_possible(cpu, true);
595 cpu_set(cpu, cpu_possible_map);
596 return 0; 595 return 0;
597} 596}
598early_param("possible_cpus", setup_possible_cpus); 597early_param("possible_cpus", setup_possible_cpus);