summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/tlb_hash32.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V2016-07-13 11:36:44 +0200
committerMichael Ellerman2016-08-01 03:15:13 +0200
commit703b41ad1a8759949adc1b641a82c2b227d18223 (patch)
tree039834ff8550ce2e0f01d42ae0fdeaf2497f7e6d /arch/powerpc/mm/tlb_hash32.c
parentpowerpc/mm/hugetlb: Add flush_hugetlb_tlb_range (diff)
downloadkernel-qcow2-linux-703b41ad1a8759949adc1b641a82c2b227d18223.tar.gz
kernel-qcow2-linux-703b41ad1a8759949adc1b641a82c2b227d18223.tar.xz
kernel-qcow2-linux-703b41ad1a8759949adc1b641a82c2b227d18223.zip
powerpc/mm: remove flush_tlb_page_nohash
This should be same as flush_tlb_page except for hash32. For hash32 I guess the existing code is wrong, because we don't seem to be flushing tlb for Hash != 0 case at all. Fix this by switching to calling flush_tlb_page() which does the right thing by flushing tlb for both hash and nohash case with hash32 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/tlb_hash32.c')
-rw-r--r--arch/powerpc/mm/tlb_hash32.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/mm/tlb_hash32.c b/arch/powerpc/mm/tlb_hash32.c
index 558e30cce33e..702d7689d714 100644
--- a/arch/powerpc/mm/tlb_hash32.c
+++ b/arch/powerpc/mm/tlb_hash32.c
@@ -49,17 +49,6 @@ void flush_hash_entry(struct mm_struct *mm, pte_t *ptep, unsigned long addr)
EXPORT_SYMBOL(flush_hash_entry);
/*
- * 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.
*/