xen/arm: Set nr_cpu_ids to available number of cpus
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Mon, 1 Feb 2016 09:26:13 +0000 (14:56 +0530)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Feb 2017 23:07:00 +0000 (15:07 -0800)
nr_cpu_ids for arm platforms is incorrectly set to NR_CPUS
irrespective of the number of cpus supported by platform.

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/setup.c

index 2bf4363c12debb227b3bc1e9109b5fb91427371d..ee34af71523c20cfb33f6a60edc9fe6881b5ee87 100644 (file)
@@ -780,6 +780,8 @@ void __init start_xen(unsigned long boot_phys_offset,
 
     smp_init_cpus();
     cpus = smp_get_max_cpus();
+    printk(XENLOG_INFO "SMP: Allowing %u CPUs\n", cpus);
+    nr_cpu_ids = cpus;
 
     init_xen_time();