]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/bitops: Use TZCNT mnemonic in <asm/bitops.h>
authorUros Bizjak <ubizjak@gmail.com>
Tue, 25 Mar 2025 17:52:01 +0000 (18:52 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Mar 2025 21:38:29 +0000 (22:38 +0100)
commit0717b1392dc7e3f350e5a5d25ea794aa92210684
treec4f3a2e32f6f95f7edba6f9e15374a012e968c19
parent3d66af75b08609281cbd7b71d40bbb9829c88764
x86/bitops: Use TZCNT mnemonic in <asm/bitops.h>

Current minimum required version of binutils is 2.25,
which supports TZCNT instruction mnemonic.

Replace "REP; BSF" in variable__{ffs,ffz}() function
with this proper mnemonic.

No functional change intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20250325175215.330659-1-ubizjak@gmail.com
arch/x86/include/asm/bitops.h