]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()
authorShawn Guo <shawn.guo@linaro.org>
Thu, 13 Sep 2012 01:01:05 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:46:06 +0000 (20:46 +1000)
commite7dd15f1653006f4c77d41e5e0393cc5f4948724
treef0b97f6abec313a6df0b600b1da11da975aefeef
parentb8422646a7eaf28039323ab3c354efe1f997452e
kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()

As kernel_power_off() calls disable_nonboot_cpus(), we may also want to
have kernel_restart() call disable_nonboot_cpus().  Doing so can help
machines that require boot cpu be the last alive cpu during reboot to
survive with kernel restart.

This fixes one reboot issue seen on imx6q (Cortex-A9 Quad).  The machine
requires that the restart routine be run on the primary cpu rather than
secondary ones.  Otherwise, the secondary core running the restart routine
will fail to come to online after reboot.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sys.c