nios2: implement the new page table range API
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Aug 2023 15:13:46 +0000 (16:13 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:22 +0000 (16:20 -0700)
commit994209410919f2b84b7e4ab2e78785d9715308ad
treea2e076e426d95ae5375b1756629b0aa0f40affba
parent15fa3e8e32692a423209a1808ef098f7ec3174f5
nios2: implement the new page table range API

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-19-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/nios2/include/asm/cacheflush.h
arch/nios2/include/asm/pgtable.h
arch/nios2/mm/cacheflush.c