Skip to content

Commit d2d302b

Browse files
committed
x86/alternative: Convert ALTERNATIVE_TERNARY()
The C macro. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20240607111701.8366-10-bp@kernel.org
1 parent 719ac02 commit d2d302b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

arch/x86/include/asm/alternative.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,9 @@ static inline int alternatives_text_reserved(void *start, void *end)
274274

275275
/* If @feature is set, patch in @newinstr_yes, otherwise @newinstr_no. */
276276
#define ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \
277-
ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \
278-
newinstr_yes, ft_flags)
279-
280-
/* If @feature is set, patch in @newinstr_yes, otherwise @newinstr_no. */
281-
#define N_ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \
282277
N_ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \
283278
newinstr_yes, ft_flags)
284279

285-
286280
#define ALTERNATIVE_3(oldinsn, newinsn1, ft_flags1, newinsn2, ft_flags2, \
287281
newinsn3, ft_flags3) \
288282
OLDINSTR_3(oldinsn, 1, 2, 3) \

0 commit comments

Comments
 (0)