arch/riscv: add Zihintpause support
authorDao Lu <daolu@rivosinc.com>
Mon, 20 Jun 2022 20:15:25 +0000 (13:15 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Aug 2022 15:03:49 +0000 (08:03 -0700)
commit8eb060e10185cfc97ef0200d197ec246ba0f9f8c
tree5d72c5ef54b14b6b84b202ceae056cb401cf4284
parent3aefb2ee5bdd4a8976298415a5a017bf9844bfd5
arch/riscv: add Zihintpause support

Implement support for the ZiHintPause extension.

The PAUSE instruction is a HINT that indicates the current hart’s rate
of instruction retirement should be temporarily reduced or paused.

Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dao Lu <daolu@rivosinc.com>
[Palmer: Some minor merge conflicts.]
Link: https://lore.kernel.org/all/20220620201530.3929352-1-daolu@rivosinc.com/
Link: https://lore.kernel.org/all/20220811053356.17375-1-palmer@rivosinc.com/
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Makefile
arch/riscv/include/asm/hwcap.h
arch/riscv/include/asm/vdso/processor.h
arch/riscv/kernel/cpu.c
arch/riscv/kernel/cpufeature.c