riscv: pass the mm_struct to __sbi_tlb_flush_range
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 15:20:49 +0000 (17:20 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 1 Jul 2021 03:55:38 +0000 (20:55 -0700)
commit70c7605c08c5979e5148085903bfed5feac09406
treee7061a0c55971c91acda3fbbff5f93ea58c7a43b
parentc9811e379b211c67ba29fb09d6f644dd44cfcff2
riscv: pass the mm_struct to __sbi_tlb_flush_range

Move the call mm_cpumask from the callers into __sbi_tlb_flush_range to
reduce a bit of duplicate code and prepare for future changes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/tlbflush.c