]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64/mm: Drop unused restore_ttbr1
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 17 Nov 2022 12:31:44 +0000 (18:01 +0530)
committerWill Deacon <will@kernel.org>
Fri, 18 Nov 2022 14:37:24 +0000 (14:37 +0000)
restore_ttbr1 procedure is not used anywhere, hence just drop it.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20221117123144.403582-1-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/assembler.h

index 27e0c75f78184874f29ff570170aac0d81a0f77f..88175551b401fa387c4f0c39dc5155402d9f12f0 100644 (file)
@@ -614,17 +614,6 @@ alternative_endif
 #endif
        .endm
 
-/*
- * Perform the reverse of offset_ttbr1.
- * bic is used as it can cover the immediate value and, in future, won't need
- * to be nop'ed out when dealing with 52-bit kernel VAs.
- */
-       .macro  restore_ttbr1, ttbr
-#ifdef CONFIG_ARM64_VA_BITS_52
-       bic     \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET
-#endif
-       .endm
-
 /*
  * Arrange a physical address in a TTBR register, taking care of 52-bit
  * addresses.