diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-05 16:08:17 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-09-19 17:51:53 -0700 |
commit | 38bef8e57f2149acd2c910a98f57dd6291d2e0ec (patch) | |
tree | c4a62158f1967502fa801529406a5a04624048f2 /arch/loongarch/kernel/setup.c | |
parent | 53fc190cc6771c5494d782210334d4ebb50c7103 (diff) |
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/loongarch/kernel/setup.c')
-rw-r--r-- | arch/loongarch/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/setup.c b/arch/loongarch/kernel/setup.c index 8f5c2f9a1a83..18a81edd3ac5 100644 --- a/arch/loongarch/kernel/setup.c +++ b/arch/loongarch/kernel/setup.c @@ -346,7 +346,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); } #endif |