Commit 1d6b5ed4 authored by Samuel Holland's avatar Samuel Holland Committed by Palmer Dabbelt

riscv: Fix NR_CPUS range conditions

The conditions reference the symbol SBI_V01, which does not exist. The
correct symbol is RISCV_SBI_V01.

Fixes: e623715f ("RISC-V: Increase range and default value of NR_CPUS")
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221126061557.3541-1-samuel@sholland.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent fcae44fd
...@@ -317,9 +317,9 @@ config SMP ...@@ -317,9 +317,9 @@ config SMP
config NR_CPUS config NR_CPUS
int "Maximum number of CPUs (2-512)" int "Maximum number of CPUs (2-512)"
depends on SMP depends on SMP
range 2 512 if !SBI_V01 range 2 512 if !RISCV_SBI_V01
range 2 32 if SBI_V01 && 32BIT range 2 32 if RISCV_SBI_V01 && 32BIT
range 2 64 if SBI_V01 && 64BIT range 2 64 if RISCV_SBI_V01 && 64BIT
default "32" if 32BIT default "32" if 32BIT
default "64" if 64BIT default "64" if 64BIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment