Commit 24b44a66 authored by Committed by Russell King
ARM: 5889/1: Add atomic64 routines for ARMv6k and above.
In preparation for perf-events support, ARM needs to support atomic64_t operations. v6k and above support the ldrexd and strexd instructions to do just that. This patch adds atomic64 support to the ARM architecture. v6k and above make use of new instructions whilst older cores fall back on the generic solution using spinlocks. If and when v7-M cores are supported by Linux, they will need to fall back on the spinlock implementation too. Signed-off-by: Will Deacon <email@example.com> Acked-by: Catalin Marinas <firstname.lastname@example.org> Signed-off-by: Russell King <email@example.com>
Showing with 229 additions and 0 deletions