summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/tlbflush.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-21 16:58:35 +0200
committerPaul Walmsley <paul.walmsley@sifive.com>2019-09-05 10:51:57 +0200
commitf5bf645d10f2c6cc85294021af70f2b7bcc42d8e (patch)
treeafdd6f6025388e64799a7b652306e823bb3e4473 /arch/riscv/include/asm/tlbflush.h
parentriscv: optimize send_ipi_single (diff)
downloadlinux-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.h1
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);
}