x86/alternatives: Add comment about noinstr expectations

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-53-mingo@kernel.org
This commit is contained in:
Ingo Molnar
2025-04-11 07:41:04 +02:00
parent 023f42dd59
commit 4f9534719e

View File

@@ -2447,6 +2447,11 @@ static struct smp_text_poke_array {
static DEFINE_PER_CPU(atomic_t, text_poke_array_refs);
/*
* These four __always_inline annotations imply noinstr, necessary
* due to smp_text_poke_int3_handler() being noinstr:
*/
static __always_inline bool try_get_text_poke_array(void)
{
atomic_t *refs = this_cpu_ptr(&text_poke_array_refs);