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

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


On Fri, Jul 24, 2015 at 11:42:00AM +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 locking functions so that
> LSE atomic instructions are used for spinlocks and rwlocks.
> 
> 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