jump_label, x86: Emit short JMP
authorPeter Zijlstra <peterz@infradead.org>
Thu, 6 May 2021 19:34:01 +0000 (21:34 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 12:54:55 +0000 (14:54 +0200)
commite7bf1ba97afdde75b0ef43e4bdb718bf843613f1
tree090e3ff09488c36c2becee9bc596f92d752ef6be
parent5af0ea293d78c8b8f0b87ae2b13f7ac584057bc3
jump_label, x86: Emit short JMP

Now that we can patch short JMP/NOP, allow the compiler/assembler to
emit short JMP instructions.

There is no way to have the assembler emit short NOPs based on the
potential displacement, so leave those long for now.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506194157.967034497@infradead.org
arch/x86/include/asm/jump_label.h
arch/x86/kernel/jump_label.c