ARM: EXYNOS: Don't use LDREX and STREX after disabling cache coherency
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 26 Feb 2015 20:50:41 +0000 (05:50 +0900)
committerKukjin Kim <kgene@kernel.org>
Thu, 26 Feb 2015 20:50:52 +0000 (05:50 +0900)
commitca489c58ef0b81cc9c9252fd92e6c9bb38d3c408
tree0990ef777d9e882e193e92b93273b53bf715dc2e
parentc517d838eb7d07bbe9507871fab3931deccff539
ARM: EXYNOS: Don't use LDREX and STREX after disabling cache coherency

During CPU shutdown the exynos_cpu_power_down() is called after
disabling cache coherency and it uses LDREX and STREX instructions (by
calling of_machine_is_compatible() -> kobject_get() -> kref_get()).

The LDREX and STREX should not be used after disabling the cache
coherency so just use soc_is_exynos().

Fixes: adc548d77c22 ("ARM: EXYNOS: Use MCPM call-backs to support S2R
on exynos5420")

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/mach-exynos/platsmp.c