RISC-V: Do not invoke SBI call if cpumask is empty
authorAtish Patra <atish.patra@wdc.com>
Thu, 22 Aug 2019 07:51:49 +0000 (00:51 -0700)
committerPaul Walmsley <paul.walmsley@sifive.com>
Tue, 29 Oct 2019 18:32:18 +0000 (11:32 -0700)
commit6384423f49c804dbca02add1945e0ccf922cb522
tree11deafffd128f5270f4e28b5ff6726982b3438d6
parent00a5bf3a8ca30d19f24219fc3cfb74f4eab3600d
RISC-V: Do not invoke SBI call if cpumask is empty

SBI calls are expensive. If cpumask is empty, there is no need to
trap via SBI as no remote tlb flushing is required.

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