[PATCH v2 1/1] psi: stop relying on timer_pending for poll_work rescheduling

Peter Zijlstra peterz at infradead.org
Thu Jul 1 01:58:24 PDT 2021


On Wed, Jun 30, 2021 at 01:51:51PM -0700, Suren Baghdasaryan wrote:
> +	/* cmpxchg should be called even when !force to set poll_scheduled */
> +	if (atomic_cmpxchg(&group->poll_scheduled, 0, 1) && !force)
>  		return;

Why is that a cmpxchg() ?



More information about the linux-arm-kernel mailing list