]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f888089acfd83641021af2c27d2c3f73588a282
tree5d72c5ef54b14b6b84b202ceae056cb401cf4284
parent54d0095c0494726473f301d259e0d5a4760494af
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