]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-m68k/tlbflush.h
Fix nfsd truncation of readdir results
[linux-2.6-omap-h63xx.git] / include / asm-m68k / tlbflush.h
index 31678831ee470cb8409e5d24c194704a82943d02..acb6bf21a321368024034a7678ad24f824e32bd6 100644 (file)
@@ -16,7 +16,7 @@ static inline void flush_tlb_kernel_page(void *addr)
                                     ".chip 68k"
                                     : : "a" (addr));
                set_fs(old_fs);
-       } else
+       } else if (CPU_IS_020_OR_030)
                __asm__ __volatile__("pflush #4,#4,(%0)" : : "a" (addr));
 }
 
@@ -29,7 +29,7 @@ static inline void __flush_tlb(void)
                __asm__ __volatile__(".chip 68040\n\t"
                                     "pflushan\n\t"
                                     ".chip 68k");
-       else
+       else if (CPU_IS_020_OR_030)
                __asm__ __volatile__("pflush #0,#4");
 }
 
@@ -45,7 +45,7 @@ static inline void __flush_tlb_one(unsigned long addr)
 {
        if (CPU_IS_040_OR_060)
                __flush_tlb040_one(addr);
-       else
+       else if (CPU_IS_020_OR_030)
                __asm__ __volatile__("pflush #0,#4,(%0)" : : "a" (addr));
 }
 
@@ -60,7 +60,7 @@ static inline void flush_tlb_all(void)
                __asm__ __volatile__(".chip 68040\n\t"
                                     "pflusha\n\t"
                                     ".chip 68k");
-       else
+       else if (CPU_IS_020_OR_030)
                __asm__ __volatile__("pflusha");
 }
 
@@ -92,11 +92,6 @@ static inline void flush_tlb_kernel_range(unsigned long start, unsigned long end
        flush_tlb_all();
 }
 
-static inline void flush_tlb_pgtables(struct mm_struct *mm,
-                                     unsigned long start, unsigned long end)
-{
-}
-
 #else
 
 
@@ -219,11 +214,6 @@ static inline void flush_tlb_kernel_page (unsigned long addr)
        sun3_put_segmap (addr & ~(SUN3_PMEG_SIZE - 1), SUN3_INVALID_PMEG);
 }
 
-static inline void flush_tlb_pgtables(struct mm_struct *mm,
-                                     unsigned long start, unsigned long end)
-{
-}
-
 #endif
 
 #endif /* _M68K_TLBFLUSH_H */