diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-05-06 21:33:58 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 14:54:55 +0200 |
commit | fa5e5dc39669b4427830c546ede8709323b8276c (patch) | |
tree | 9277ff40e9c2908a6a78b8e887c0740cc5a86251 /arch/x86/include/asm/jump_label.h | |
parent | jump_label, x86: Improve error when we fail expected text (diff) | |
download | linux-fa5e5dc39669b4427830c546ede8709323b8276c.tar.xz linux-fa5e5dc39669b4427830c546ede8709323b8276c.zip |
jump_label, x86: Introduce jump_entry_size()
This allows architectures to have variable sized jumps.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506194157.786777050@infradead.org
Diffstat (limited to 'arch/x86/include/asm/jump_label.h')
-rw-r--r-- | arch/x86/include/asm/jump_label.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/jump_label.h b/arch/x86/include/asm/jump_label.h index dfdc2b1c17dd..d85802a00629 100644 --- a/arch/x86/include/asm/jump_label.h +++ b/arch/x86/include/asm/jump_label.h @@ -4,8 +4,6 @@ #define HAVE_JUMP_LABEL_BATCH -#define JUMP_LABEL_NOP_SIZE 5 - #include <asm/asm.h> #include <asm/nops.h> @@ -47,6 +45,8 @@ l_yes: return true; } +extern int arch_jump_entry_size(struct jump_entry *entry); + #endif /* __ASSEMBLY__ */ #endif |