Patched to 2.6.10-1.14_FC2.
[linux-2.6.git] / include / asm-x86_64 / mmu_context.h
index 671e757..8f80f15 100644 (file)
@@ -54,10 +54,9 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
                        out_of_line_bug();
                if(!test_and_set_bit(cpu, &next->cpu_vm_mask)) {
                        /* We were in lazy tlb mode and leave_mm disabled 
-                        * tlb flush IPI delivery. We must reload CR3
-                        * to make sure to use no freed page tables.
+                        * tlb flush IPI delivery. We must flush our tlb.
                         */
-                       asm volatile("movq %0,%%cr3" :: "r" (__pa(next->pgd)) : "memory");
+                       local_flush_tlb();
                        load_LDT_nolock(&next->context, cpu);
                }
        }