arm64: alternatives: Split up alternative.h
authorWill Deacon <will@kernel.org>
Tue, 30 Jun 2020 12:55:59 +0000 (13:55 +0100)
committerWill Deacon <will@kernel.org>
Mon, 9 Nov 2020 21:49:34 +0000 (21:49 +0000)
commit7cda23da52ad793a578d290e7fcc9cdc1698bba8
tree93d8b6de3423eae83594c54f922df02584f7f4a8
parente2a2190a80ca0ebddd52c766caf08908d71fb949
arm64: alternatives: Split up alternative.h

asm/alternative.h contains both the macros needed to use alternatives,
as well the type definitions and function prototypes for applying them.

Split the header in two, so that alternatives can be used from core
header files such as linux/compiler.h without the risk of circular
includes

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/alternative-macros.h [new file with mode: 0644]
arch/arm64/include/asm/alternative.h
arch/arm64/include/asm/asm-uaccess.h
arch/arm64/include/asm/insn.h
arch/arm64/kernel/proton-pack.c