diff options
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r-- | include/asm-generic/pgtable.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index 5657a20e0c59..359fb935ded6 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
@@ -1127,4 +1127,20 @@ static inline bool arch_has_pfn_modify_check(void) | |||
1127 | #endif | 1127 | #endif |
1128 | #endif | 1128 | #endif |
1129 | 1129 | ||
1130 | /* | ||
1131 | * On some architectures it depends on the mm if the p4d/pud or pmd | ||
1132 | * layer of the page table hierarchy is folded or not. | ||
1133 | */ | ||
1134 | #ifndef mm_p4d_folded | ||
1135 | #define mm_p4d_folded(mm) __is_defined(__PAGETABLE_P4D_FOLDED) | ||
1136 | #endif | ||
1137 | |||
1138 | #ifndef mm_pud_folded | ||
1139 | #define mm_pud_folded(mm) __is_defined(__PAGETABLE_PUD_FOLDED) | ||
1140 | #endif | ||
1141 | |||
1142 | #ifndef mm_pmd_folded | ||
1143 | #define mm_pmd_folded(mm) __is_defined(__PAGETABLE_PMD_FOLDED) | ||
1144 | #endif | ||
1145 | |||
1130 | #endif /* _ASM_GENERIC_PGTABLE_H */ | 1146 | #endif /* _ASM_GENERIC_PGTABLE_H */ |