]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/mm/tlb.c
x86/mm: Fix flush_tlb_page() on Xen
[linux.git] / arch / x86 / mm / tlb.c
index 9db9260a5e9fcf78cd7ffa33a6f393e187cf4401..6e7bedf69af78d4fd9fec1f4144542b91ce5892b 100644 (file)
@@ -263,8 +263,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
 {
        struct flush_tlb_info info;
 
-       if (end == 0)
-               end = start + PAGE_SIZE;
        info.flush_mm = mm;
        info.flush_start = start;
        info.flush_end = end;
@@ -378,7 +376,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long start)
        }
 
        if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids)
-               flush_tlb_others(mm_cpumask(mm), mm, start, 0UL);
+               flush_tlb_others(mm_cpumask(mm), mm, start, start + PAGE_SIZE);
 
        preempt_enable();
 }