static inline void flush_tlb_mm(struct mm_struct *mm)
{
+#ifndef CONFIG_X86_SWITCH_PAGETABLES
if (mm == current->active_mm)
__flush_tlb();
+#endif
}
static inline void flush_tlb_page(struct vm_area_struct *vma,
unsigned long addr)
{
+#ifndef CONFIG_X86_SWITCH_PAGETABLES
if (vma->vm_mm == current->active_mm)
__flush_tlb_one(addr);
+#endif
}
static inline void flush_tlb_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{
+#ifndef CONFIG_X86_SWITCH_PAGETABLES
if (vma->vm_mm == current->active_mm)
__flush_tlb();
+#endif
}
#else
__flush_tlb()
extern void flush_tlb_all(void);
-extern void flush_tlb_current_task(void);
extern void flush_tlb_mm(struct mm_struct *);
extern void flush_tlb_page(struct vm_area_struct *, unsigned long);
-#define flush_tlb() flush_tlb_current_task()
+#define flush_tlb() flush_tlb_all()
static inline void flush_tlb_range(struct vm_area_struct * vma, unsigned long start, unsigned long end)
{