OSDN Git Service

arm64: tlb: Adjust stride and type of TLBI according to mmu_gather
authorWill Deacon <will.deacon@arm.com>
Thu, 23 Aug 2018 20:08:31 +0000 (21:08 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Sep 2018 15:49:12 +0000 (16:49 +0100)
commitf270ab88fdf205be1a7a46ccb61f4a343be543a2
treeb7c178fc74a523baebd56b344941cc08b606acb5
parent07212cd47efef1df971e2289a89c087a5f6f6a2b
arm64: tlb: Adjust stride and type of TLBI according to mmu_gather

Now that the core mmu_gather code keeps track of both the levels of page
table cleared and also whether or not these entries correspond to
intermediate entries, we can use this in our tlb_flush() callback to
reduce the number of invalidations we issue as well as their scope.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/tlb.h