diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-21 16:58:35 +0200 |
---|---|---|
committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-09-05 10:51:57 +0200 |
commit | f5bf645d10f2c6cc85294021af70f2b7bcc42d8e (patch) | |
tree | afdd6f6025388e64799a7b652306e823bb3e4473 /arch/riscv/include/asm/tlbflush.h | |
parent | riscv: optimize send_ipi_single (diff) | |
download | linux-f5bf645d10f2c6cc85294021af70f2b7bcc42d8e.tar.xz linux-f5bf645d10f2c6cc85294021af70f2b7bcc42d8e.zip |
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>
Diffstat (limited to 'arch/riscv/include/asm/tlbflush.h')
-rw-r--r-- | arch/riscv/include/asm/tlbflush.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/tlbflush.h b/arch/riscv/include/asm/tlbflush.h index 4d9bbe8438bf..df31fe2ed09c 100644 --- a/arch/riscv/include/asm/tlbflush.h +++ b/arch/riscv/include/asm/tlbflush.h @@ -47,7 +47,6 @@ static inline void remote_sfence_vma(struct cpumask *cmask, unsigned long start, { struct cpumask hmask; - cpumask_clear(&hmask); riscv_cpuid_to_hartid_mask(cmask, &hmask); sbi_remote_sfence_vma(hmask.bits, start, size); } |