]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-powerpc/tlb.h
[MIPS] tlbex: use __maybe_unused
[linux-2.6-omap-h63xx.git] / include / asm-powerpc / tlb.h
index 56659f12177981a7b71392e61039fb07a10bc0fc..0a17682663d8f308411b26e8ba28eb91e1c8fe96 100644 (file)
@@ -11,8 +11,8 @@
  */
 #ifndef _ASM_POWERPC_TLB_H
 #define _ASM_POWERPC_TLB_H
+#ifdef __KERNEL__
 
-#include <linux/config.h>
 #ifndef __powerpc64__
 #include <asm/pgtable.h>
 #endif
@@ -38,7 +38,6 @@ extern void pte_free_finish(void);
 
 static inline void tlb_flush(struct mmu_gather *tlb)
 {
-       flush_tlb_pending();
        pte_free_finish();
 }
 
@@ -67,4 +66,5 @@ static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep,
 }
 
 #endif
+#endif /* __KERNEL__ */
 #endif /* __ASM_POWERPC_TLB_H */