aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/text-patching.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-04-11 07:40:52 +0200
committerIngo Molnar <mingo@kernel.org>2025-04-11 11:01:34 +0200
commit6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f (patch)
treeff03836232de3658c30c78c42193bdea0b75124e /arch/x86/include/asm/text-patching.h
parentx86/alternatives: Move text_poke_array completion from smp_text_poke_batch_fi... (diff)
downloadlinux-6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f.tar.gz
linux-6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f.zip
x86/alternatives: Rename 'text_poke_sync()' to 'smp_text_poke_sync_each_cpu()'
Unlike sync_core(), text_poke_sync() is a very heavy operation, as it sends an IPI to every online CPU in the system and waits for completion. Reflect this in the name. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Juergen Gross <jgross@suse.com> Cc: "H . Peter Anvin" <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250411054105.2341982-41-mingo@kernel.org
Diffstat (limited to 'arch/x86/include/asm/text-patching.h')
-rw-r--r--arch/x86/include/asm/text-patching.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/text-patching.h b/arch/x86/include/asm/text-patching.h
index f3c9b70afb0c..d9dbbe9d9667 100644
--- a/arch/x86/include/asm/text-patching.h
+++ b/arch/x86/include/asm/text-patching.h
@@ -32,7 +32,7 @@ extern void apply_relocation(u8 *buf, const u8 * const instr, size_t instrlen, u
* an inconsistent instruction while you patch.
*/
extern void *text_poke(void *addr, const void *opcode, size_t len);
-extern void text_poke_sync(void);
+extern void smp_text_poke_sync_each_cpu(void);
extern void *text_poke_kgdb(void *addr, const void *opcode, size_t len);
extern void *text_poke_copy(void *addr, const void *opcode, size_t len);
#define text_poke_copy text_poke_copy