diff options
author | Will Deacon <will@kernel.org> | 2020-06-30 13:55:59 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-11-09 21:49:34 +0000 |
commit | 7cda23da52ad793a578d290e7fcc9cdc1698bba8 (patch) | |
tree | 93d8b6de3423eae83594c54f922df02584f7f4a8 /arch/arm64/include/asm/insn.h | |
parent | e2a2190a80ca0ebddd52c766caf08908d71fb949 (diff) | |
download | lwn-7cda23da52ad793a578d290e7fcc9cdc1698bba8.tar.gz lwn-7cda23da52ad793a578d290e7fcc9cdc1698bba8.zip |
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>
Diffstat (limited to 'arch/arm64/include/asm/insn.h')
-rw-r--r-- | arch/arm64/include/asm/insn.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/insn.h b/arch/arm64/include/asm/insn.h index 4b39293d0f72..4ebb9c054ccc 100644 --- a/arch/arm64/include/asm/insn.h +++ b/arch/arm64/include/asm/insn.h @@ -10,8 +10,7 @@ #include <linux/build_bug.h> #include <linux/types.h> -/* A64 instructions are always 32 bits. */ -#define AARCH64_INSN_SIZE 4 +#include <asm/alternative.h> #ifndef __ASSEMBLY__ /* |