[PATCH 1/5] asm-generic: add smp_vcond_load_relaxed()

Christoph Lameter (Ampere) cl at gentwo.org
Tue Nov 5 11:36:25 PST 2024


On Tue, 5 Nov 2024, Haris Okanovic wrote:

> +/**
> + * smp_vcond_load_relaxed() - (Spin) wait until an expected value at address
> + * with no ordering guarantees. Spins until `(*addr & mask) == val` or
> + * `nsecs` elapse, and returns the last observed `*addr` value.
> + *
> + * @nsecs: timeout in nanoseconds

Please use an absolute time in nsecs instead of a timeout. You do not know
what will happen to your execution thread until the local_clock_noinstr()
is run.





More information about the linux-arm-kernel mailing list