arm64: head: drop idmap_ptrs_per_pgd
authorArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 15:06:34 +0000 (17:06 +0200)
committerWill Deacon <will@kernel.org>
Fri, 24 Jun 2022 16:18:09 +0000 (17:18 +0100)
commitebd9aea1f27ef27ed8581c16a96352b3cce89f39
tree71912b608eb67a88f418b02f4d18af8c2c617b39
parente8d13cced5c5038cc93de9561cf2cb4f22205061
arm64: head: drop idmap_ptrs_per_pgd

The assignment of idmap_ptrs_per_pgd lacks any cache invalidation, even
though it is updated with the MMU and caches disabled. However, we never
bother to read the value again except in the very next instruction, and
so we can just drop the variable entirely.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20220624150651.1358849-5-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mmu_context.h
arch/arm64/kernel/head.S
arch/arm64/mm/mmu.c