Files
linux/arch/s390/include/asm
Peter Zijlstra 1e9fdf21a4 mmu_gather: Remove per arch tlb_{start,end}_vma()
Scattered across the archs are 3 basic forms of tlb_{start,end}_vma().
Provide two new MMU_GATHER_knobs to enumerate them and remove the per
arch tlb_{start,end}_vma() implementations.

 - MMU_GATHER_NO_FLUSH_CACHE indicates the arch has flush_cache_range()
   but does *NOT* want to call it for each VMA.

 - MMU_GATHER_MERGE_VMAS indicates the arch wants to merge the
   invalidate across multiple VMAs if possible.

With these it is possible to capture the three forms:

  1) empty stubs;
     select MMU_GATHER_NO_FLUSH_CACHE and MMU_GATHER_MERGE_VMAS

  2) start: flush_cache_range(), end: empty;
     select MMU_GATHER_MERGE_VMAS

  3) start: flush_cache_range(), end: flush_tlb_range();
     default

Obviously, if the architecture does not have flush_cache_range() then
it also doesn't need to select MMU_GATHER_NO_FLUSH_CACHE.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will@kernel.org>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-07-21 10:50:13 -07:00
..
2021-07-27 09:39:15 +02:00
2022-03-27 22:18:39 +02:00
2022-05-11 14:40:57 +02:00
2020-08-26 18:47:21 +02:00
2021-07-27 09:39:15 +02:00
2021-01-19 12:29:26 +01:00
2021-10-11 20:55:58 +02:00
2020-12-16 14:55:49 +01:00
2021-05-07 00:26:34 -07:00
2022-03-08 00:33:01 +01:00
2021-06-18 16:41:19 +02:00
2021-07-30 17:09:02 +02:00
2021-08-03 14:31:40 +02:00
2020-02-27 16:02:21 +01:00
2020-09-14 11:38:35 +02:00
2022-06-30 19:40:36 +02:00
2021-10-26 15:21:31 +02:00
2022-05-11 14:40:57 +02:00
2021-10-26 15:21:30 +02:00
2021-06-18 16:41:21 +02:00
2022-06-01 12:03:17 +02:00
2022-01-30 21:17:00 -05:00
2021-07-08 15:37:28 +02:00
2021-01-19 12:29:26 +01:00