Skip to content

Commit

Permalink
arm64: tlb: remove redundant barrier from __flush_tlb_pgtable
Browse files Browse the repository at this point in the history
__flush_tlb_pgtable is used to invalidate intermediate page table
entries after they have been cleared and are about to be freed. Since
pXd_clear imply memory barriers, we don't need the extra one here.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Will Deacon authored and Catalin Marinas committed Oct 7, 2015
1 parent 38d9628 commit 28c6fbc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm64/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm,
{
unsigned long addr = uaddr >> 12 | (ASID(mm) << 48);

dsb(ishst);
asm("tlbi vae1is, %0" : : "r" (addr));
dsb(ish);
}
Expand Down

0 comments on commit 28c6fbc

Please sign in to comment.