Skip to content

Commit

Permalink
ARM: imx: do not return from imx_cpu_die() call
Browse files Browse the repository at this point in the history
When imx_cpu_die() is being called, the cpu should never return from the
call but just in WFI and wait for hardware to take it down.  So let's
do cpu_do_idle() repeatly in the call.  Doing this help improve the
relibility of hotplug operation.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Shawn Guo committed Oct 21, 2013
1 parent 85920f3 commit fcd75f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-imx/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ void imx_cpu_die(unsigned int cpu)
* the register being cleared to kill the cpu.
*/
imx_set_cpu_arg(cpu, ~0);
cpu_do_idle();

while (1)
cpu_do_idle();
}

int imx_cpu_kill(unsigned int cpu)
Expand Down

0 comments on commit fcd75f9

Please sign in to comment.