]> 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>
Fri, 28 Sep 2012 00:20:12 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 5 Oct 2012 04:01:19 +0000 (14:01 +1000)
commitca335f46217f2108a685c08519c1bef61de54c0b
tree6119cc3f1336dde249c3fec8058e2fa0e37b7ec2
parent6529fcc14ef64082b26ec802fefc88febd18a503
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