Re: [PATCH v2 3/6] riscv: Add Zawrs support for spinlocks

Conor Dooley
2024-04-19T15:23:15Z

[-- Attachment #1.1: Type: text/plain, Size: 757 bytes --]

On Fri, Apr 19, 2024 at 03:53:25PM +0200, Andrew Jones wrote:

> +config RISCV_ISA_ZAWRS
> + bool "Zawrs extension support for more efficient busy waiting"
> + depends on RISCV_ALTERNATIVE
> + default y
> + help
> + The Zawrs extension defines instructions to be used in polling loops
> + which allow a hart to enter a low-power state or to trap to the
> + hypervisor while waiting on a store to a memory location. Enable the
> + use of these instructions in the kernel when the Zawrs extension is
> + detected at boot.

Ignoring the rest of the patch, and focusing on the bit relevant to our
other conversation, I think this description satisfies what I was trying
to do with the other options in terms of being clear about what exactly
it does.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]