]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: Provide a definition for 'pause'
authorAndrew Jones <ajones@ventanamicro.com>
Fri, 26 Apr 2024 10:08:21 +0000 (12:08 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 12 Jul 2024 10:16:39 +0000 (03:16 -0700)
commit6da111574baffb3399a6bd03a98b269eac9713f2
tree9c1855b8097eaa9ff05fc2a619eff005b4c3f883
parent4cece764965020c22cff7665b18a012006359095
riscv: Provide a definition for 'pause'

If we're going to provide the encoding for 'pause' in cpu_relax()
anyway, then we can drop the toolchain checks and just always use
it. The advantage of doing this is that other code that need
pause don't need to also define it (yes, another use is coming).
Add the definition to insn-def.h since it's an instruction
definition and also because insn-def.h doesn't include much, so
it's safe to include from asm/vdso/processor.h without concern for
circular dependencies.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20240426100820.14762-9-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/Makefile
arch/riscv/include/asm/insn-def.h
arch/riscv/include/asm/vdso/processor.h