jump_label, x86: Factor out the __jump_table generation
authorPeter Zijlstra <peterz@infradead.org>
Thu, 6 May 2021 19:33:56 +0000 (21:33 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 12:54:55 +0000 (14:54 +0200)
commite1aa35c4c4bc71e44dabc9d7d167b807edd7b439
tree24d2087ed38ce5bdbc175f61a2d623b0158d4b33
parent8bfafcdccb52e770695b12530b1f800fe98b16b1
jump_label, x86: Factor out the __jump_table generation

Both arch_static_branch() and arch_static_branch_jump() have the same
blurb to generate the __jump_table entry, share it.

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