]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill
authorShawn Guo <shawn.guo@linaro.org>
Tue, 26 Mar 2013 08:46:07 +0000 (16:46 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 26 Mar 2013 12:25:45 +0000 (20:25 +0800)
commitf08a1e28949ad25a1753dda2fd8e569490dafcde
tree91a1caefb205cb5fe9fc28de6cddd9490540c9b0
parent9baf579c20758b27722e8caa3b35811f3796675d
ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill

There is a sync issue with hotplug operation.  It's possible that when
imx_cpu_kill gets running on primary core, the imx_cpu_die execution
on the core which is to be killed hasn't been finished yet.  The problem
will very likely be hit when running suspend without no_console_suspend
setting on kernel cmdline.

It uses cpu jumping argument register to sync imx_cpu_die and
imx_cpu_kill.  The register will be set in imx_cpu_die and imx_cpu_kill
will wait for the register being cleared to actually kill the cpu.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: <stable@vger.kernel.org>
arch/arm/mach-imx/common.h
arch/arm/mach-imx/hotplug.c
arch/arm/mach-imx/src.c