[PATCH] RISC-V: Add futex support.

Christoph Hellwig hch at infradead.org
Mon Oct 15 09:01:03 PDT 2018

On Mon, Oct 15, 2018 at 08:57:24AM -0700, Jim Wilson wrote:
> __riscv_atomic is a predefined macro from the compiler.  It is defined
> when the target has atomic instructions, e.g. -march=rv64ia.  It is
> not defined when the target has no atomic instructions, e.g.
> -march=rv64i.  The idea here was that we only used atomic instructions
> if the target has them.  I didn't think to check for a more proper
> kernel solution.  I see that there is a CONFIG_RISCV_ISA_A so it looks
> like I should be testing that instead.

Actually CONFIG_RISCV_ISA_A is dead code as well.  We assume A
extensions in the kernel, so there should be no conditionals.

More information about the linux-riscv mailing list