Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
fix up for "x86/static-call: provide a way to do very early static-ca…
Browse files Browse the repository at this point in the history
…ll updates"

Signed-off-by: Stephen Rothwell <[email protected]>
  • Loading branch information
sfrothwell committed Dec 18, 2024
1 parent e6dc627 commit 3c18ac8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/static_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ noinstr void __static_call_update_early(void *tramp, void *func)
{
BUG_ON(system_state != SYSTEM_BOOTING);
BUG_ON(!early_boot_irqs_disabled);
#ifdef CONFIG_HAVE_STATIC_CALL_INLINE
BUG_ON(static_call_initialized);
#endif
__text_gen_insn(tramp, JMP32_INSN_OPCODE, tramp, func, JMP32_INSN_SIZE);
sync_core();
}
Expand Down

0 comments on commit 3c18ac8

Please sign in to comment.