aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r--include/asm-generic/pgtable.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index b1836987d506..a7126d28f4cf 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -396,6 +396,28 @@ static inline void ptep_modify_prot_commit(struct mm_struct *mm,
396#define arch_start_context_switch(prev) do {} while (0) 396#define arch_start_context_switch(prev) do {} while (0)
397#endif 397#endif
398 398
399#ifndef CONFIG_HAVE_ARCH_SOFT_DIRTY
400static inline int pte_soft_dirty(pte_t pte)
401{
402 return 0;
403}
404
405static inline int pmd_soft_dirty(pmd_t pmd)
406{
407 return 0;
408}
409
410static inline pte_t pte_mksoft_dirty(pte_t pte)
411{
412 return pte;
413}
414
415static inline pmd_t pmd_mksoft_dirty(pmd_t pmd)
416{
417 return pmd;
418}
419#endif
420
399#ifndef __HAVE_PFNMAP_TRACKING 421#ifndef __HAVE_PFNMAP_TRACKING
400/* 422/*
401 * Interfaces that can be used by architecture code to keep track of 423 * Interfaces that can be used by architecture code to keep track of