diff options
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 841e573b27fe..e929d43753c5 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h | |||
@@ -434,6 +434,12 @@ static inline int pte_none(pte_t pte) | |||
434 | return !pte.pte; | 434 | return !pte.pte; |
435 | } | 435 | } |
436 | 436 | ||
437 | #define __HAVE_ARCH_PTE_SAME | ||
438 | static inline int pte_same(pte_t a, pte_t b) | ||
439 | { | ||
440 | return a.pte == b.pte; | ||
441 | } | ||
442 | |||
437 | #endif /* __ASSEMBLY__ */ | 443 | #endif /* __ASSEMBLY__ */ |
438 | 444 | ||
439 | #ifdef CONFIG_X86_32 | 445 | #ifdef CONFIG_X86_32 |