riscv: cleanup send_ipi_mask
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Aug 2019 14:58:33 +0000 (23:58 +0900)
committerPaul Walmsley <paul.walmsley@sifive.com>
Thu, 5 Sep 2019 08:44:37 +0000 (01:44 -0700)
commit1db7a7ca5ac543d0e360d1e8a3dc10ce74b58027
treea2ebd34ef27e433614b85e9b9ede45efde058232
parent7e0e50895fdf7d5ad94ceb6a076571f4c6a357fe
riscv: cleanup send_ipi_mask

Use the special barriers for atomic bitops to make the intention
a little more clear, and use riscv_cpuid_to_hartid_mask instead of
open coding it.

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/kernel/smp.c