]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/alternatives: Simplify smp_text_poke_single() by using tp_vec and existing APIs
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:36 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
commitc8976ade0c1b4c0629b8a080d712ff402e8343b3
tree3b5d8662bf37b9bc2ee917b671666947c3dc719c
parenteaa24c9177c8c765ec9b9ccab392ac07ae8acda0
x86/alternatives: Simplify smp_text_poke_single() by using tp_vec and existing APIs

Instead of constructing a vector on-stack, just use the already
available batch-patching vector - which should always be empty
at this point.

This will allow subsequent simplifications.

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