Commit def6cfb7 authored by Rusty Russell's avatar Rusty Russell Committed by Martin Schwidefsky

[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: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarMike Travis <travis@sgi.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 93632d1b
...@@ -590,9 +590,8 @@ static int __init setup_possible_cpus(char *s) ...@@ -590,9 +590,8 @@ static int __init setup_possible_cpus(char *s)
int pcpus, cpu; int pcpus, cpu;
pcpus = simple_strtoul(s, NULL, 0); pcpus = simple_strtoul(s, NULL, 0);
cpu_possible_map = cpumask_of_cpu(0); for (cpu = 0; cpu < pcpus && cpu < nr_cpu_ids; cpu++)
for (cpu = 1; cpu < pcpus && cpu < nr_cpu_ids; cpu++) set_cpu_possible(cpu, true);
cpu_set(cpu, cpu_possible_map);
return 0; return 0;
} }
early_param("possible_cpus", setup_possible_cpus); early_param("possible_cpus", setup_possible_cpus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment