]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-i386/pgtable-3level.h
[ARM] 4364/1: AT91: LEDS on AT91SAM9261-EK
[linux-2.6-omap-h63xx.git] / include / asm-i386 / pgtable-3level.h
index be6017f37a9163ca75b0614ede2a5f2a496f710e..eb0f1d7e96a169365a277e3817f6a50aced276ba 100644 (file)
@@ -139,6 +139,7 @@ static inline void pud_clear (pud_t * pud) { }
 #define pmd_offset(pud, address) ((pmd_t *) pud_page(*(pud)) + \
                        pmd_index(address))
 
+#ifdef CONFIG_SMP
 static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
 {
        pte_t res;
@@ -150,6 +151,9 @@ static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
 
        return res;
 }
+#else
+#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)
@@ -200,6 +204,4 @@ static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
 
 #define __pmd_free_tlb(tlb, x)         do { } while (0)
 
-#define vmalloc_sync_all() ((void)0)
-
 #endif /* _I386_PGTABLE_3LEVEL_H */