]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/alternatives: Rename 'put_desc()' to 'put_text_poke_array()'
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:42 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
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 <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-31-mingo@kernel.org
arch/x86/kernel/alternative.c

index 02f123cff898faebb7e6f2c192f645a019496e2d..f909f4e2f90858c6f9a79afb5deba72dd20d02e8 100644 (file)
@@ -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;
 }