summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/pgtable-book3s64.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-05-31 11:56:31 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2016-06-01 13:47:34 +1000
commit157d4d0620879b7d89ca1e3cd7bf0be1e29be198 (patch)
tree691cca75be337bdc830d4af4ae16f9f3fdafa272 /arch/powerpc/mm/pgtable-book3s64.c
parentdc47c0c1f8099fccb2c1e2f3775855066a9e4484 (diff)
downloadblackbird-obmc-linux-157d4d0620879b7d89ca1e3cd7bf0be1e29be198.tar.gz
blackbird-obmc-linux-157d4d0620879b7d89ca1e3cd7bf0be1e29be198.zip
powerpc/mm/radix: Add missing tlb flush
This should not have any impact on hash, because hash does tlb invalidate with every pte update and we don't implement flush_tlb_* functions for hash. With radix we should make an explicit call to flush tlb outside pte update. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable-book3s64.c')
-rw-r--r--arch/powerpc/mm/pgtable-book3s64.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/mm/pgtable-book3s64.c b/arch/powerpc/mm/pgtable-book3s64.c
index eb4451144746..670318766545 100644
--- a/arch/powerpc/mm/pgtable-book3s64.c
+++ b/arch/powerpc/mm/pgtable-book3s64.c
@@ -33,10 +33,7 @@ int pmdp_set_access_flags(struct vm_area_struct *vma, unsigned long address,
changed = !pmd_same(*(pmdp), entry);
if (changed) {
__ptep_set_access_flags(pmdp_ptep(pmdp), pmd_pte(entry));
- /*
- * Since we are not supporting SW TLB systems, we don't
- * have any thing similar to flush_tlb_page_nohash()
- */
+ flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
}
return changed;
}
OpenPOWER on IntegriCloud