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)
commitab3d26500547369c24a6c1c31725fd2841a57d0c
tree1e23b51e00a4fabd4fde9a821b47ab7a7a02120a
parent70114560b2855853126c65cccdc49a33187327d0
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