[PATCH 5/5] arm64: atomics: lse: define RETURN ops in terms of FETCH ops
Mark Rutland
mark.rutland at arm.com
Mon Dec 13 08:49:46 PST 2021
On Fri, Dec 10, 2021 at 11:19:40PM +0100, Peter Zijlstra wrote:
> On Fri, Dec 10, 2021 at 03:14:10PM +0000, Mark Rutland wrote:
> > The FEAT_LSE atomic instructions include LD* instructions which return
> > the original value of a memory location can be used to directly
> > implement FETCH opertations. Each RETURN op is implemented as a copy of
> > the corresponding FETCH op with a trailing instruction instruction to
>
> instruction instruction instruction is probably even more better :-)
I've gone the other way and just made that a single `instruction` in the
branch. :)
Mark.
More information about the linux-arm-kernel
mailing list