]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: imx6: spin the cpu until hardware takes it down
authorShawn Guo <shawn.guo@linaro.org>
Sat, 18 Aug 2012 06:27:32 +0000 (14:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 17:00:05 +0000 (10:00 -0700)
commit830cb0da378e5ec143613069faf250b742456021
treec90e8204305d06202e850b411b8914695410e3e9
parent47bca6a5021332b17aa5efc2d66af1018af70ba1
ARM: imx6: spin the cpu until hardware takes it down

commit c944b0b9354ea06ffb0c8a7178949f1185f9f499 upstream.

Though commit 602bf40 (ARM: imx6: exit coherency when shutting down
a cpu) improves the stability of imx6q cpu hotplug a lot, there are
still hangs seen with a more stressful hotplug testing.

It's expected that once imx_enable_cpu(cpu, false) is called, the cpu
will be taken down by hardware immediately, and the code after that
will not get any chance to execute.  However, this is not always the
case from the testing.  The cpu could possibly be alive for a few
cycles before hardware actually takes it down.  So rather than letting
cpu execute some code that could cause a hang in these cycles, let's
make the cpu spin there and wait for hardware to take it down.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-imx/hotplug.c