arch/arm: always has atomic ops
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 17 Aug 2014 19:29:51 +0000 (21:29 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 18 Aug 2014 09:00:51 +0000 (11:00 +0200)
armv6 and above all have one sort of atomic ops or another. For armv5
and below, they are emulated, either as a kernel trap, a kernel VDSO,
or compiler intrinsics.

Aarch64 is just armv8, so make it a single commit. ;-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.aarch64
arch/Config.in.arm

index 4c68a378c26ae56b5b333a3968a8295517ce0d49..2e79870b34a59d3300db9599614ab16b100d3604 100644 (file)
@@ -3,3 +3,6 @@ config BR2_ARCH
 
 config BR2_ENDIAN
        default "LITTLE"
+
+config BR2_ARCH_HAS_ATOMICS
+       default y
index 4cc41f10a1d95c5a13e03c49b18a45ab804b01a2..e404a505f544aba523b2324b00185cf199b3a68c 100644 (file)
@@ -340,6 +340,9 @@ config BR2_ENDIAN
        default "LITTLE" if BR2_arm
        default "BIG"    if BR2_armeb
 
+config BR2_ARCH_HAS_ATOMICS
+       default y
+
 config BR2_GCC_TARGET_CPU
        default "arm920"        if BR2_arm920
        default "arm920t"       if BR2_arm920t