Skip to content

Commit 5a60993

Browse files
npigginmpe
authored andcommitted
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 <[email protected]> Reviewed-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent d97e7f1 commit 5a60993

File tree

1 file changed

+3
-0
lines changed
  • arch/powerpc/include/asm

1 file changed

+3
-0
lines changed

arch/powerpc/include/asm/tlb.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep,
4949
static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
5050
unsigned int page_size)
5151
{
52+
if (tlb->fullmm)
53+
return;
54+
5255
if (!tlb->page_size)
5356
tlb->page_size = page_size;
5457
else if (tlb->page_size != page_size) {

0 commit comments

Comments
 (0)