Commit a6527b6b authored by Yury Norov's avatar Yury Norov Committed by Lu Jialin
Browse files

smp: don't declare nr_cpu_ids if NR_CPUS == 1

mainline inclusion
from mainline-v6.1-rc1
commit 53fc190c
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KQBZ
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=53fc190cc6771c5494d782210334d4ebb50c7103



--------------------------------

SMP and NR_CPUS are independent options, hence nr_cpu_ids may be
declared even if NR_CPUS == 1, which is useless.

Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarZheng Zucheng <zhengzucheng@huawei.com>
parent db10ed58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment