]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bitops: patch in lse instructions when supported by the CPU
authorWill Deacon <will.deacon@arm.com>
Thu, 12 Feb 2015 04:17:37 +0000 (04:17 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 14:28:51 +0000 (15:28 +0100)
commit870e078ea601be5749aa60a78f2afbaa676870ba
tree614b95211ba1f8b103ed8f8b9de13ee14a5fab8b
parente5be985429830aa61895203bf54974b131b37c6d
arm64: bitops: patch in lse instructions when supported by the CPU

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 bitops functions so that
LSE atomic instructions are used instead.

Reviewed-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/lse.h
arch/arm64/lib/bitops.S