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 <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent fcae44f commit 1d6b5ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)