smp: add set_nr_cpu_ids()
authorYury Norov <yury.norov@gmail.com>
Mon, 5 Sep 2022 23:08:17 +0000 (16:08 -0700)
committerYury Norov <yury.norov@gmail.com>
Tue, 20 Sep 2022 00:51:53 +0000 (17:51 -0700)
commit38bef8e57f2149acd2c910a98f57dd6291d2e0ec
treec4a62158f1967502fa801529406a5a04624048f2
parent53fc190cc6771c5494d782210334d4ebb50c7103
smp: add set_nr_cpu_ids()

In preparation to support compile-time nr_cpu_ids, add a setter for
the variable.

This is a no-op for all arches.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
arch/loongarch/kernel/setup.c
arch/mips/kernel/setup.c
arch/x86/kernel/smpboot.c
arch/x86/xen/smp_pv.c
include/linux/cpumask.h
kernel/smp.c