]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/alternatives: Use non-inverted logic instead of 'tp_order_fail()'
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:34 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
commit2d0cf10a1eb60deded109c2357326a5ca44e3845
tree2104b6400c24146da8253a4bc7487b9dad5a93c0
parent87836af1eafc6616bde680be556f49ba3325f798
x86/alternatives: Use non-inverted logic instead of 'tp_order_fail()'

tp_order_fail() uses inverted logic: it returns true in case something
is false, which is only a plus at the IOCCC.

Instead rename it to regular parity as 'text_poke_addr_ordered()',
and adjust the code accordingly.

Also add a comment explaining how the address ordering should be
understood.

No change in functionality intended.

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