x86: kernel: set NR_CPUS to 512

NR_CPUS limits the number of CPUs supported to 8. This makes total sense
on hardware-restircted platforms, but not on x86_64, where CPUs with
more than 8 cores can be easily acquired and with less physical limitaions.

see also: https://forum.openwrt.org/t/x86-64-8-cpu-limitation-on-vanilla-release/100946

Signed-off-by: Edgar Su <sjs333@outlook.com>
This commit is contained in:
Edgar Su 2021-07-12 21:22:48 +08:00 committed by AmadeusGhost
parent 2bb5878a50
commit 5a6225d587
3 changed files with 4 additions and 4 deletions

View File

@ -251,7 +251,7 @@ CONFIG_MODULES_USE_ELF_RELA=y
# CONFIG_MPSC is not set
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_NET_FLOW_LIMIT=y
CONFIG_NR_CPUS=8
CONFIG_NR_CPUS=512
# CONFIG_NUMA is not set
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_PADATA=y

View File

@ -265,8 +265,8 @@ CONFIG_ND_CLAIM=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NET_FAILOVER=y
CONFIG_NET_FLOW_LIMIT=y
CONFIG_NR_CPUS=8
CONFIG_NR_CPUS_DEFAULT=64
CONFIG_NR_CPUS=512
CONFIG_NR_CPUS_DEFAULT=512
CONFIG_NR_CPUS_RANGE_BEGIN=2
CONFIG_NR_CPUS_RANGE_END=512
# CONFIG_NUMA is not set

View File

@ -344,7 +344,7 @@ CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NLS=y
# CONFIG_NOHIGHMEM is not set
CONFIG_NO_BOOTMEM=y
CONFIG_NR_CPUS=1
CONFIG_NR_CPUS=8
# CONFIG_NSC_GPIO is not set
CONFIG_NVRAM=y
# CONFIG_OF is not set