riscv: hwprobe: export Zihintpause ISA extension
authorClément Léger <cleger@rivosinc.com>
Wed, 21 Feb 2024 08:31:06 +0000 (09:31 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 28 Apr 2024 21:50:38 +0000 (14:50 -0700)
commit63f93a3ca891fd90353cf81f5d2fc4cbc3508f1a
tree0ac58a9ea623c45db680fde97a110db564fe308f
parent441381506ba7ca1cb8b44e651b130ab791d2e298
riscv: hwprobe: export Zihintpause ISA extension

Export the Zihintpause ISA extension through hwprobe which allows using
"pause" instructions. Some userspace applications (OpenJDK for
instance) uses this to handle some locking back-off.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240221083108.1235311-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/arch/riscv/hwprobe.rst
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/kernel/sys_hwprobe.c