MLK-11676 ARM: imx_v7_defconfig: disable CONFIG_SWP_EMULATE
authorShengjiu Wang <shengjiu.wang@freescale.com>
Fri, 9 Oct 2015 08:56:41 +0000 (16:56 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:49 +0000 (14:48 -0500)
According to the help text in the config SWP_EMULATE in arch/arm/mm/Kconfig:

"In some older versions of glibc [<=2.8] SWP is used during futex trylock()
operations with the assumption that the code will not be preempted. This
invalid assumption may be more likely to fail with SWP emulation enabled,
leading to deadlock of the user application."

The audio codec toolchain version is gcc-4.1.1-glibc-2.4, we need turn off
the CONFIG_SWP_EMULATE in the imx_v7_defconfig.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
arch/arm/configs/imx_v7_defconfig
arch/arm/mm/Kconfig

index a37c6cb..bbc0c89 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_SOC_IMX6SX=y
 CONFIG_SOC_IMX6UL=y
 CONFIG_SOC_IMX7D=y
 CONFIG_SOC_VF610=y
+# CONFIG_SWP_EMULATE is not set
 CONFIG_SMP=y
 CONFIG_HAVE_ARM_ARCH_TIMER=y
 CONFIG_VMSPLIT_2G=y
index c1799dd..aa7d512 100644 (file)
@@ -692,7 +692,7 @@ config ARM_VIRT_EXT
          details.
 
 config SWP_EMULATE
-       bool "Emulate SWP/SWPB instructions" if !SMP
+       bool "Emulate SWP/SWPB instructions"
        depends on CPU_V7
        default y if SMP
        select HAVE_PROC_CPU if PROC_FS