patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / ppc / mm / tlb.c
index 3bf70f6..34605ba 100644 (file)
@@ -66,6 +66,17 @@ void flush_hash_one_pte(pte_t *ptep)
        flush_hash_pages(mm->context, addr, ptephys, 1);
 }
 
+/*
+ * Called by ptep_set_access_flags, must flush on CPUs for which the
+ * DSI handler can't just "fixup" the TLB on a write fault
+ */
+void flush_tlb_page_nohash(struct vm_area_struct *vma, unsigned long addr)
+{
+       if (Hash != 0)
+               return;
+       _tlbie(addr);
+}
+
 /*
  * Called at the end of a mmu_gather operation to make sure the
  * TLB flush is completely done.