Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: v6k: select generic atomic64 code according to V6 variants

If CONFIG_CPU_V6 is enabled, avoid using the double-word exclusive
instructions in the kernel's atomic implementations as these are not
supported. Fall back to the generic spinlock code instead.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

+1 -1
+1 -1
arch/arm/Kconfig
··· 7 7 select HAVE_MEMBLOCK 8 8 select RTC_LIB 9 9 select SYS_SUPPORTS_APM_EMULATION 10 - select GENERIC_ATOMIC64 if (!CPU_32v6K || !AEABI) 10 + select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) 11 11 select HAVE_OPROFILE if (HAVE_PERF_EVENTS) 12 12 select HAVE_ARCH_KGDB 13 13 select HAVE_KPROBES if (!XIP_KERNEL && !THUMB2_KERNEL)