Skip to content

Commit 1d6b5ed

Browse files
smaeulpalmer-dabbelt
authored andcommitted
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: e623715 ("RISC-V: Increase range and default value of NR_CPUS") Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20221126061557.3541-1-samuel@sholland.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent fcae44f commit 1d6b5ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/riscv/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ config SMP
317317
config NR_CPUS
318318
int "Maximum number of CPUs (2-512)"
319319
depends on SMP
320-
range 2 512 if !SBI_V01
321-
range 2 32 if SBI_V01 && 32BIT
322-
range 2 64 if SBI_V01 && 64BIT
320+
range 2 512 if !RISCV_SBI_V01
321+
range 2 32 if RISCV_SBI_V01 && 32BIT
322+
range 2 64 if RISCV_SBI_V01 && 64BIT
323323
default "32" if 32BIT
324324
default "64" if 64BIT
325325

0 commit comments

Comments
 (0)