ARM: EXYNOS: fix exynos_boot_secondary() return value on timeout
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 18 Mar 2015 13:09:53 +0000 (14:09 +0100)
committerKukjin Kim <kgene@kernel.org>
Fri, 5 Jun 2015 17:17:56 +0000 (02:17 +0900)
commit9f294c178e03d824a89a85284b04c0770425de76
treeba5097593b50dc062be6443dbe932969e037bb7b
parent29e5eea06bc19114b1df668f85b605914766a899
ARM: EXYNOS: fix exynos_boot_secondary() return value on timeout

exynos_boot_secondary() can erroneously return 0 or -ENOSYS even
when waiting on pen_release being set to -1 timeouts.  Fix it by
adjusting ret variable value to -ETIMEDOUT when necessary.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/mach-exynos/platsmp.c