MIPS: Allow __cpu_number_map to be larger than NR_CPUS
authorDavid Daney <david.daney@cavium.com>
Thu, 28 Sep 2017 17:34:04 +0000 (12:34 -0500)
committerJames Hogan <jhogan@kernel.org>
Tue, 7 Nov 2017 18:32:10 +0000 (18:32 +0000)
commit7820b84be844d8d863122b1323f2a4bc2441b783
tree0eb0d2281e2ba7dbf37ecb4d7d90ea5ee8c61be2
parent239e14d1952942bd902dcd09d93c80e7f2a76637
MIPS: Allow __cpu_number_map to be larger than NR_CPUS

In systems where the CPU id space is sparse, this allows a smaller
NR_CPUS to be chosen, thus keeping internal data structures smaller.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Carlos Munoz <cmunoz@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17388/
[jhogan@kernel.org: Add depends on SMP to fix
 "warning: symbol value '' invalid for MIPS_NR_CPU_NR_MAP"]
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/Kconfig
arch/mips/include/asm/smp.h
arch/mips/kernel/smp.c