riscv: cleanup riscv_cpuid_to_hartid_mask
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Aug 2019 14:58:35 +0000 (23:58 +0900)
committerPaul Walmsley <paul.walmsley@sifive.com>
Thu, 5 Sep 2019 08:51:57 +0000 (01:51 -0700)
commitf5bf645d10f2c6cc85294021af70f2b7bcc42d8e
treeafdd6f6025388e64799a7b652306e823bb3e4473
parente11ea2a02b93933425ddfa4b4e2012ba0882ac82
riscv: cleanup riscv_cpuid_to_hartid_mask

Move the initial clearing of the mask from the callers to
riscv_cpuid_to_hartid_mask, and remove the unused !CONFIG_SMP stub.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/include/asm/smp.h
arch/riscv/include/asm/tlbflush.h
arch/riscv/kernel/smp.c
arch/riscv/mm/cacheflush.c