[PATCH v2 12/20] arm64: cmpxchg: patch in lse instructions when supported by the CPU

Catalin Marinas catalin.marinas at arm.com
Fri Jul 24 08:21:50 PDT 2015


On Fri, Jul 24, 2015 at 11:42:03AM +0100, Will Deacon wrote:
> On CPUs which support the LSE atomic instructions introduced in ARMv8.1,
> it makes sense to use them in preference to ll/sc sequences.
> 
> This patch introduces runtime patching of our cmpxchg primitives so that
> the LSE cas instruction is used instead.
> 
> 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