aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2022-04-20 11:24:08 +0000
committerPalmer Dabbelt <[email protected]>2022-10-04 20:16:44 +0000
commite623715f3d67ad10985b2c10cf7edd9ad85db372 (patch)
tree2b392ef105748c2d5736e1c22817a49801494ef7 /fs/proc/array.c
parentcpuidle: riscv-sbi: Fix CPU_PM_CPU_IDLE_ENTER_xyz() macro usage (diff)
downloadkernel-e623715f3d67ad10985b2c10cf7edd9ad85db372.tar.gz
kernel-e623715f3d67ad10985b2c10cf7edd9ad85db372.zip
RISC-V: Increase range and default value of NR_CPUS
Currently, the range and default value of NR_CPUS is too restrictive for high-end RISC-V systems with large number of HARTs. The latest QEMU virt machine supports upto 512 CPUs so the current NR_CPUS is restrictive for QEMU as well. Other major architectures (such as ARM64, x86_64, MIPS, etc) have a much higher range and default value of NR_CPUS. This patch increases NR_CPUS range to 2-512 and default value to XLEN (i.e. 32 for RV32 and 64 for RV64). Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions