]> 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)
commitad8989a3d0463fca5c77bf931adddf1f2e0b927f
tree1e23b51e00a4fabd4fde9a821b47ab7a7a02120a
parent78533be870cbc2b5e4a05f9839566e7448886642
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