aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-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);