diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-06-24 17:06:34 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-24 17:18:09 +0100 |
commit | ebd9aea1f27ef27ed8581c16a96352b3cce89f39 (patch) | |
tree | 71912b608eb67a88f418b02f4d18af8c2c617b39 /arch/arm64/mm/mmu.c | |
parent | arm64: head: move assignment of idmap_t0sz to C code (diff) | |
download | linux-dev-ebd9aea1f27ef27ed8581c16a96352b3cce89f39.tar.xz linux-dev-ebd9aea1f27ef27ed8581c16a96352b3cce89f39.zip |
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>
Diffstat (limited to 'arch/arm64/mm/mmu.c')
-rw-r--r-- | arch/arm64/mm/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index 9b4fc78f7a4d..63732ca0ccf5 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -44,7 +44,6 @@ #define NO_EXEC_MAPPINGS BIT(2) /* assumes FEAT_HPDS is not used */ int idmap_t0sz __ro_after_init; -u64 idmap_ptrs_per_pgd = PTRS_PER_PGD; #if VA_BITS > 48 u64 vabits_actual __ro_after_init = VA_BITS_MIN; |