summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandre Ghiti <alexghiti@rivosinc.com>2023-10-30 16:30:28 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-11-06 18:20:52 +0300
commit5e22bfd520ea8740e9a20314d2a890baf304c9d2 (patch)
treefab0fd3904000adb03b3f01512aa9d12c64f3fc4 /tools/perf/scripts/python
parent9d4e8d5fa7dbbb606b355f40d918a1feef821bc5 (diff)
downloadlinux-5e22bfd520ea8740e9a20314d2a890baf304c9d2.tar.xz
riscv: Improve flush_tlb_kernel_range()
This function used to simply flush the whole tlb of all harts, be more subtile and try to only flush the range. The problem is that we can only use PAGE_SIZE as stride since we don't know the size of the underlying mapping and then this function will be improved only if the size of the region to flush is < threshold * PAGE_SIZE. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # On RZ/Five SMARC Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Tested-by: Samuel Holland <samuel.holland@sifive.com> Link: https://lore.kernel.org/r/20231030133027.19542-5-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions