]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/alternatives: Introduce 'struct smp_text_poke_array' and move tp_vec and tp_vec_n...
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:39 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
commit6e7dc03aeeb52fb0147c03377e4f44fea780ef53
tree25b7c0f4a07ada1910d3bb9517d90ddbcd0af4a9
parent37725b64a9912292841cea7e9aebfd0f084ed8c0
x86/alternatives: Introduce 'struct smp_text_poke_array' and move tp_vec and tp_vec_nr to it

struct text_poke_array is an equivalent structure to these global variables:

static struct smp_text_poke_loc tp_vec[TP_VEC_MAX];
static int tp_vec_nr;

Note that we intentionally mirror much of the naming of
'struct text_poke_int3_vec', which will further highlight
the unecessary layering going on in this code, and will
ease its removal.

No change in functionality.

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-28-mingo@kernel.org
arch/x86/kernel/alternative.c