mm: add dummy pmd_young() for architectures not having it
[platform/kernel/linux-starfive.git] / arch / loongarch / include / asm / pgtable.h
index 8ea57e2..10e0bd9 100644 (file)
@@ -412,6 +412,9 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
        __update_tlb(vma, address, ptep);
 }
 
+#define __HAVE_ARCH_UPDATE_MMU_TLB
+#define update_mmu_tlb update_mmu_cache
+
 static inline void update_mmu_cache_pmd(struct vm_area_struct *vma,
                        unsigned long address, pmd_t *pmdp)
 {
@@ -479,6 +482,7 @@ static inline pmd_t pmd_mkdirty(pmd_t pmd)
        return pmd;
 }
 
+#define pmd_young pmd_young
 static inline int pmd_young(pmd_t pmd)
 {
        return !!(pmd_val(pmd) & _PAGE_ACCESSED);