[PATCH v2 14/20] arm64: cmpxchg: avoid "cc" clobber in ll/sc routines

Catalin Marinas catalin.marinas at arm.com
Fri Jul 24 08:30:18 PDT 2015


On Fri, Jul 24, 2015 at 11:42:05AM +0100, Will Deacon wrote:
> We can perform the cmpxchg comparison using eor and cbnz which avoids
> the "cc" clobber for the ll/sc case and consequently for the LSE case
> where we may have to fall-back on the ll/sc code at runtime.
> 
> Reviewed-by: Steve Capper <steve.capper at arm.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list