mips: implement the new page table range API
Rename _PFN_SHIFT to PFN_PTE_SHIFT. Convert a few places to call set_pte() instead of set_pte_at(). Add set_ptes(), update_mmu_cache_range(), flush_icache_pages() and flush_dcache_folio(). Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-folio. Link: https://lkml.kernel.org/r/20230802151406.3735276-18-willy@infradead.org Signed-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by:
Mike Rapoport (IBM) <rppt@kernel.org> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- arch/mips/bcm47xx/prom.c 1 addition, 1 deletionarch/mips/bcm47xx/prom.c
- arch/mips/include/asm/cacheflush.h 21 additions, 11 deletionsarch/mips/include/asm/cacheflush.h
- arch/mips/include/asm/pgtable-32.h 5 additions, 5 deletionsarch/mips/include/asm/pgtable-32.h
- arch/mips/include/asm/pgtable-64.h 3 additions, 3 deletionsarch/mips/include/asm/pgtable-64.h
- arch/mips/include/asm/pgtable-bits.h 3 additions, 3 deletionsarch/mips/include/asm/pgtable-bits.h
- arch/mips/include/asm/pgtable.h 41 additions, 22 deletionsarch/mips/include/asm/pgtable.h
- arch/mips/mm/c-r4k.c 3 additions, 2 deletionsarch/mips/mm/c-r4k.c
- arch/mips/mm/cache.c 28 additions, 28 deletionsarch/mips/mm/cache.c
- arch/mips/mm/init.c 13 additions, 8 deletionsarch/mips/mm/init.c
- arch/mips/mm/pgtable-32.c 1 addition, 1 deletionarch/mips/mm/pgtable-32.c
- arch/mips/mm/pgtable-64.c 1 addition, 1 deletionarch/mips/mm/pgtable-64.c
- arch/mips/mm/tlbex.c 1 addition, 1 deletionarch/mips/mm/tlbex.c
Please register or sign in to comment