diff options
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
| -rw-r--r-- | arch/x86/include/asm/pgtable.h | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 44e2d6f1dbaa..5059799bebe3 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -815,7 +815,8 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd)  static inline int pmd_bad(pmd_t pmd)  { -	return (pmd_flags(pmd) & ~_PAGE_USER) != _KERNPG_TABLE; +	return (pmd_flags(pmd) & ~(_PAGE_USER | _PAGE_ACCESSED)) != +	       (_KERNPG_TABLE & ~_PAGE_ACCESSED);  }  static inline unsigned long pages_to_mb(unsigned long npg) @@ -1431,10 +1432,10 @@ static inline bool arch_has_pfn_modify_check(void)  	return boot_cpu_has_bug(X86_BUG_L1TF);  } -#define arch_faults_on_old_pte arch_faults_on_old_pte -static inline bool arch_faults_on_old_pte(void) +#define arch_has_hw_pte_young arch_has_hw_pte_young +static inline bool arch_has_hw_pte_young(void)  { -	return false; +	return true;  }  #ifdef CONFIG_PAGE_TABLE_CHECK  |