powerpc/mm: update radix__pte_update to not do full mm tlb flush
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 28 Nov 2016 06:17:03 +0000 (11:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 Nov 2016 11:45:12 +0000 (22:45 +1100)
When we are updating a pte, we just need to flush the tlb mapping
that pte. Right now we do a full mm flush because we don't track page
size. Now that we have page size details in pte use that to do the
optimized flush

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/radix.h

index 36f636911ade98e1d7ad236d094eb7e2ece30f13..f4066cf31b3ed816847560aa028d11430a3c7f20 100644 (file)
@@ -145,13 +145,7 @@ static inline unsigned long radix__pte_update(struct mm_struct *mm,
                 * new value of pte
                 */
                new_pte = (old_pte | set) & ~clr;
-
-               /*
-                * For now let's do heavy pid flush
-                * radix__flush_tlb_page_psize(mm, addr, mmu_virtual_psize);
-                */
-               radix__flush_tlb_mm(mm);
-
+               radix__flush_tlb_pte_p9_dd1(old_pte, mm, addr);
                __radix_pte_update(ptep, 0, new_pte);
        } else
                old_pte = __radix_pte_update(ptep, clr, set);