Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64/mm: Drop unused restore_ttbr1

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>

authored by

Anshuman Khandual and committed by
Will Deacon
5b468dad 56eea7f8

-11
-11
arch/arm64/include/asm/assembler.h
··· 615 615 .endm 616 616 617 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 - 628 - /* 629 618 * Arrange a physical address in a TTBR register, taking care of 52-bit 630 619 * addresses. 631 620 *