diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-03-26 09:46:07 +0100 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-03-26 13:25:45 +0100 |
commit | 2f3edfd7e27ad4206acbc2ae99c9df5f46353024 (patch) | |
tree | 91a1caefb205cb5fe9fc28de6cddd9490540c9b0 /arch/arm/mach-imx/common.h | |
parent | ARM: imx: add dependency check for DEBUG_IMX_UART_PORT (diff) | |
download | linux-2f3edfd7e27ad4206acbc2ae99c9df5f46353024.tar.xz linux-2f3edfd7e27ad4206acbc2ae99c9df5f46353024.zip |
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>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r-- | arch/arm/mach-imx/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 5a800bfcec5b..5bf4a97ab241 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -110,6 +110,8 @@ void tzic_handle_irq(struct pt_regs *); extern void imx_enable_cpu(int cpu, bool enable); extern void imx_set_cpu_jump(int cpu, void *jump_addr); +extern u32 imx_get_cpu_arg(int cpu); +extern void imx_set_cpu_arg(int cpu, u32 arg); extern void v7_cpu_resume(void); extern u32 *pl310_get_save_ptr(void); #ifdef CONFIG_SMP |