]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] cpumask: Use accessors code.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Mar 2009 14:25:00 +0000 (15:25 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:33 +0000 (15:24 +0100)
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>
arch/s390/kernel/smp.c

index 13052a4ed71d4de2d0d62bdbf0abc88e263fd585..006ed5016eb416d8dab512bd2a7e2625e0d498ed 100644 (file)
@@ -590,9 +590,8 @@ static int __init setup_possible_cpus(char *s)
        int pcpus, cpu;
 
        pcpus = simple_strtoul(s, NULL, 0);
-       cpu_possible_map = cpumask_of_cpu(0);
-       for (cpu = 1; cpu < pcpus && cpu < nr_cpu_ids; cpu++)
-               cpu_set(cpu, cpu_possible_map);
+       for (cpu = 0; cpu < pcpus && cpu < nr_cpu_ids; cpu++)
+               set_cpu_possible(cpu, true);
        return 0;
 }
 early_param("possible_cpus", setup_possible_cpus);