]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: unify pte_same
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 5 Feb 2009 19:30:44 +0000 (11:30 -0800)
committerJeremy Fitzhardinge <jeremy@goop.org>
Fri, 6 Feb 2009 20:26:08 +0000 (12:26 -0800)
Impact: cleanup

Unify and demacro pte_same.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/pgtable-3level.h
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable_64.h

index 07e0734f62029d4321293ff25588d166b0dafb3d..51832fa0474310f03bea04910a02b50649cf1610 100644 (file)
@@ -145,12 +145,6 @@ static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
 #define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp)
 #endif
 
-#define __HAVE_ARCH_PTE_SAME
-static inline int pte_same(pte_t a, pte_t b)
-{
-       return a.pte_low == b.pte_low && a.pte_high == b.pte_high;
-}
-
 /*
  * Bits 0, 6 and 7 are taken in the low part of the pte,
  * put the 32 bits of offset into the high part.
index 841e573b27fe3b69872a467162fb02498f22382e..e929d43753c5bb26f48c99c4022a7466a371b547 100644 (file)
@@ -434,6 +434,12 @@ static inline int pte_none(pte_t pte)
        return !pte.pte;
 }
 
+#define __HAVE_ARCH_PTE_SAME
+static inline int pte_same(pte_t a, pte_t b)
+{
+       return a.pte == b.pte;
+}
+
 #endif /* __ASSEMBLY__ */
 
 #ifdef CONFIG_X86_32
index 5906a41e8492b11edd13fe4d0e7e5bacbec04f99..ff2571865bf714d930b7c034261413348ee9c30d 100644 (file)
@@ -134,8 +134,6 @@ static inline void native_pgd_clear(pgd_t *pgd)
        native_set_pgd(pgd, native_make_pgd(0));
 }
 
-#define pte_same(a, b)         ((a).pte == (b).pte)
-
 #endif /* !__ASSEMBLY__ */
 
 #define PMD_SIZE       (_AC(1, UL) << PMD_SHIFT)