Skip to content

Commit 5b468da

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
arm64/mm: Drop unused restore_ttbr1
restore_ttbr1 procedure is not used anywhere, hence just drop it. Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 56eea7f commit 5b468da

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/arm64/include/asm/assembler.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -614,17 +614,6 @@ alternative_endif
614614
#endif
615615
.endm
616616

617-
/*
618-
* Perform the reverse of offset_ttbr1.
619-
* bic is used as it can cover the immediate value and, in future, won't need
620-
* to be nop'ed out when dealing with 52-bit kernel VAs.
621-
*/
622-
.macro restore_ttbr1, ttbr
623-
#ifdef CONFIG_ARM64_VA_BITS_52
624-
bic \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET
625-
#endif
626-
.endm
627-
628617
/*
629618
* Arrange a physical address in a TTBR register, taking care of 52-bit
630619
* addresses.

0 commit comments

Comments
 (0)