From: Ingo Molnar Date: Fri, 11 Apr 2025 05:40:42 +0000 (+0200) Subject: x86/alternatives: Rename 'put_desc()' to 'put_text_poke_array()' X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3916eec5160dd42c8409c2032149470a474cb5f2;p=users%2Fdwmw2%2Flinux.git x86/alternatives: Rename 'put_desc()' to 'put_text_poke_array()' Just like with try_get_text_poke_array(), this name better reflects what the underlying code is doing, there's no 'descriptor' indirection anymore. Signed-off-by: Ingo Molnar Cc: Juergen Gross Cc: "H . Peter Anvin" Cc: Linus Torvalds Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20250411054105.2341982-31-mingo@kernel.org --- diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 02f123cff898f..f909f4e2f9085 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -2486,7 +2486,7 @@ struct smp_text_poke_array *try_get_text_poke_array(void) return &text_poke_array; } -static __always_inline void put_desc(void) +static __always_inline void put_text_poke_array(void) { atomic_t *refs = this_cpu_ptr(&text_poke_array_refs); @@ -2590,7 +2590,7 @@ noinstr int smp_text_poke_int3_handler(struct pt_regs *regs) ret = 1; out_put: - put_desc(); + put_text_poke_array(); return ret; }