]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/idle: Remove CONFIG_AS_TPAUSE
authorUros Bizjak <ubizjak@gmail.com>
Wed, 2 Apr 2025 18:08:08 +0000 (20:08 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 3 Apr 2025 11:19:18 +0000 (13:19 +0200)
commita72d55dc3bd6555cc1f97459b42b7f62ae480f13
tree5b1b9c1682fa7afe9cfb2ac7ab8cbb17a3dd55a4
parent19c3dcd953bc8961ab486cf05f5dd45455393c42
x86/idle: Remove CONFIG_AS_TPAUSE

There is not much point in CONFIG_AS_TPAUSE at all when the emitted
assembly is always the same - it only obfuscates the __tpause() code
in essence.

Remove the TPAUSE insn mnemonic from __tpause() and leave only
the equivalent byte-wise definition. This can then be changed
back to insn mnemonic once binutils 2.31.1 is the minimum version
to build the kernel. (Right now it's 2.25.)

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: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250402180827.3762-4-ubizjak@gmail.com
arch/x86/Kconfig.assembler
arch/x86/include/asm/mwait.h