]> Pileus Git - ~andy/linux/commitdiff
ARM: Do not enable SWP emulation if CPU_V6 && CPU_V7
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 7 Jan 2011 03:57:53 +0000 (19:57 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Jan 2011 03:57:53 +0000 (19:57 -0800)
This option uses LDREXB/STREXB to emulate SWPB but these instructions
are not supported on all the ARMv6 processors.

Reported-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Leif Lindholm <Leif.Lindholm@arm.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mm/Kconfig

index 49db8b3e4a497643ce3c9ec08268ca217e3d3b10..0fe2389febf35abb607647ee7efc8ab36b93aa31 100644 (file)
@@ -644,7 +644,7 @@ config ARM_THUMBEE
 
 config SWP_EMULATE
        bool "Emulate SWP/SWPB instructions"
-       depends on CPU_V7
+       depends on CPU_V7 && !CPU_V6
        select HAVE_PROC_CPU if PROC_FS
        default y if SMP
        help