]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Implement nosmp commandline option.
authorAtish Patra <atish.patra@wdc.com>
Wed, 24 Apr 2019 21:47:59 +0000 (14:47 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 30 Apr 2019 16:47:45 +0000 (09:47 -0700)
commitde69554a068170276ce13aeaa5b0b749b0ace9ad
tree1e23b51e00a4fabd4fde9a821b47ab7a7a02120a
parent7919ed9fc56b92afd4cbf0951bab6c5b19eddfae
RISC-V: Implement nosmp commandline option.

nosmp command line option sets max_cpus to zero. No secondary harts
will boot if this is enabled. But present cpu mask will still point to
all possible masks.

Fix present cpu mask for nosmp usecase.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/smpboot.c