aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/kernel/alternative.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-04-11 07:40:32 +0200
committerIngo Molnar <mingo@kernel.org>2025-04-11 11:01:33 +0200
commit3bd7546ff24ecf9dbd74adf92b843eebd2862d1c (patch)
tree96b7ff2ce826a2bd7e8779b6f46a71764d94a127 /arch/x86/kernel/alternative.c
parentx86/alternatives: Rename 'struct text_poke_loc' to 'struct smp_text_poke_loc' (diff)
downloadwireguard-linux-3bd7546ff24ecf9dbd74adf92b843eebd2862d1c.tar.xz
wireguard-linux-3bd7546ff24ecf9dbd74adf92b843eebd2862d1c.zip
x86/alternatives: Rename 'int3_desc' to 'int3_vec'
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-21-mingo@kernel.org
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r--arch/x86/kernel/alternative.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 9abb8f0b8416..b97abfb38c3b 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -2473,7 +2473,7 @@ struct text_poke_int3_vec {
static DEFINE_PER_CPU(atomic_t, text_poke_array_refs);
-static struct text_poke_int3_vec int3_desc;
+static struct text_poke_int3_vec int3_vec;
static __always_inline
struct text_poke_int3_vec *try_get_desc(void)
@@ -2483,7 +2483,7 @@ struct text_poke_int3_vec *try_get_desc(void)
if (!raw_atomic_inc_not_zero(refs))
return NULL;
- return &int3_desc;
+ return &int3_vec;
}
static __always_inline void put_desc(void)
@@ -2522,7 +2522,7 @@ noinstr int smp_text_poke_int3_handler(struct pt_regs *regs)
/*
* Having observed our INT3 instruction, we now must observe
- * int3_desc with non-zero refcount:
+ * int3_vec with non-zero refcount:
*
* text_poke_array_refs = 1 INT3
* WMB RMB
@@ -2625,12 +2625,12 @@ static void smp_text_poke_batch_process(struct smp_text_poke_loc *tp, unsigned i
lockdep_assert_held(&text_mutex);
- int3_desc.vec = tp;
- int3_desc.nr_entries = nr_entries;
+ int3_vec.vec = tp;
+ int3_vec.nr_entries = nr_entries;
/*
* Corresponds to the implicit memory barrier in try_get_desc() to
- * ensure reading a non-zero refcount provides up to date int3_desc data.
+ * ensure reading a non-zero refcount provides up to date int3_vec data.
*/
for_each_possible_cpu(i)
atomic_set_release(per_cpu_ptr(&text_poke_array_refs, i), 1);