From: Shawn Guo Date: Tue, 26 Mar 2013 08:46:07 +0000 (+0800) Subject: ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill X-Git-Tag: v3.9-rc6~31^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f3edfd7e27ad4206acbc2ae99c9df5f46353024;p=pandora-kernel.git 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 Cc: --- Reading git-diff-tree failed