summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-07-25 16:58:06 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-07 14:49:26 +0300
commit5a6099346c41792f1ba23aea6f74ad816e7fecd4 (patch)
treee5056b2d56e92e09ea08d6def595911674117778 /arch
parentd97e7f198b10ea9d17ea64606f18102260870782 (diff)
downloadlinux-5a6099346c41792f1ba23aea6f74ad816e7fecd4.tar.xz
powerpc/64s/radix: tlb do not flush on page size when fullmm
When the mm is being torn down there will be a full PID flush so there is no need to flush the TLB on page size changes. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/tlb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/tlb.h b/arch/powerpc/include/asm/tlb.h
index 6d2ba7c779dc..97ecef697e1b 100644
--- a/arch/powerpc/include/asm/tlb.h
+++ b/arch/powerpc/include/asm/tlb.h
@@ -49,6 +49,9 @@ static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep,
static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
unsigned int page_size)
{
+ if (tlb->fullmm)
+ return;
+
if (!tlb->page_size)
tlb->page_size = page_size;
else if (tlb->page_size != page_size) {