Skip to content

Commit

Permalink
ARM: Do not enable SWP emulation if CPU_V6 && CPU_V7
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Catalin Marinas authored and Tony Lindgren committed Jan 7, 2011
1 parent 01539ba commit e118a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e118a1d

Please sign in to comment.