[PATCH v11 00/14] barrier: Add smp_cond_load_{relaxed,acquire}_timeout()

Andrew Morton akpm at linux-foundation.org
Fri Apr 24 07:28:45 PDT 2026


On Wed,  8 Apr 2026 17:55:24 +0530 Ankur Arora <ankur.a.arora at oracle.com> wrote:

> The core kernel often uses smp_cond_load_{relaxed,acquire}() to spin
> on condition variables with architectural primitives used to avoid
> hammering the relevant cachelines.
> 
> ...
> 
> Accordingly add two interfaces (with their generic and arm64 specific
> implementations):
> 
>    smp_cond_load_relaxed_timeout(ptr, cond_expr, time_expr, timeout)
>    smp_cond_load_acquire_timeout(ptr, cond_expr, time_expr, timeout)
> 
> Also add tif_need_resched_relaxed_wait() which wraps the polling
> pattern and its scheduler specific details in poll_idle().
> In addition add atomic_cond_read_*_timeout(),
> atomic64_cond_read_*_timeout(), and atomic_long wrappers.

AI review has been busy:
	https://sashiko.dev/#/patchset/20260408122538.3610871-1-ankur.a.arora@oracle.com



More information about the linux-arm-kernel mailing list