]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
riscv: mm: add param stride for __sbi_tlb_flush_range
authorNanyong Sun <sunnanyong@huawei.com>
Fri, 30 Apr 2021 08:28:49 +0000 (16:28 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 22 May 2021 17:19:47 +0000 (10:19 -0700)
commitc3b2d67046d236edb45eed5ca561c62ee7baa788
treee192f06421777beb6d55271ba7fa0b3c83cb5abc
parent141682f5b9d658b5fba7c33cf8574329a7840cdc
riscv: mm: add param stride for __sbi_tlb_flush_range

Add a parameter: stride for __sbi_tlb_flush_range(),
represent the page stride between the address of start and end.
Normally, the stride is PAGE_SIZE, and when flush huge page
address, the stride can be the huge page size such as:PMD_SIZE,
then it only need to flush one tlb entry if the address range
within PMD_SIZE.

Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/tlbflush.c