summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/setup.c
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-09-06 01:08:17 +0200
committerYury Norov <yury.norov@gmail.com>2022-09-20 02:51:53 +0200
commit38bef8e57f2149acd2c910a98f57dd6291d2e0ec (patch)
treec4a62158f1967502fa801529406a5a04624048f2 /arch/mips/kernel/setup.c
parentsmp: don't declare nr_cpu_ids if NR_CPUS == 1 (diff)
downloadlinux-38bef8e57f2149acd2c910a98f57dd6291d2e0ec.tar.xz
linux-38bef8e57f2149acd2c910a98f57dd6291d2e0ec.zip
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>
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r--arch/mips/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 2ca156a5b231..e8a0759cb4d0 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -750,7 +750,7 @@ static void __init prefill_possible_map(void)
for (; i < NR_CPUS; i++)
set_cpu_possible(i, false);
- nr_cpu_ids = possible;
+ set_nr_cpu_ids(possible);
}
#else
static inline void prefill_possible_map(void) {}