jump_label: make initial NOP patching the special case
authorArd Biesheuvel <ardb@kernel.org>
Wed, 15 Jun 2022 15:41:42 +0000 (17:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jun 2022 07:48:55 +0000 (09:48 +0200)
commit7e6b9db27de9f69a705c1a046d45882c768e16c3
tree4d17aca7fd1d19374a41639fede3095b1117bb0e
parentfdfd42892f311e2b3695852036e5be23661dc590
jump_label: make initial NOP patching the special case

Instead of defaulting to patching NOP opcodes at init time, and leaving
it to the architectures to override this if this is not needed, switch
to a model where doing nothing is the default. This is the common case
by far, as only MIPS requires NOP patching at init time. On all other
architectures, the correct encodings are emitted by the compiler and so
no initial patching is needed.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220615154142.1574619-4-ardb@kernel.org
Documentation/staging/static-keys.rst
arch/arc/kernel/jump_label.c
arch/arm/kernel/jump_label.c
arch/arm64/kernel/jump_label.c
arch/mips/include/asm/jump_label.h
arch/parisc/kernel/jump_label.c
arch/riscv/kernel/jump_label.c
arch/s390/kernel/jump_label.c
arch/x86/kernel/jump_label.c
include/linux/jump_label.h
kernel/jump_label.c