Skip to content

Commit

Permalink
powerpc/64s/radix: tlb do not flush on page size when fullmm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicholas Piggin authored and Michael Ellerman committed Aug 7, 2018
1 parent d97e7f1 commit 5a60993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/include/asm/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5a60993

Please sign in to comment.