]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: highbank: fix secondary boot and hotplug
authorRob Herring <rob.herring@calxeda.com>
Sun, 30 Dec 2012 16:15:05 +0000 (10:15 -0600)
committerOlof Johansson <olof@lixom.net>
Tue, 8 Jan 2013 05:08:25 +0000 (21:08 -0800)
commit4455e54a5938afc028a6569aa13222dba3b0d848
treecb74263e3414f9fa4dcf7d50e41aee834723ebb7
parentfedcdffe3e06a376d6831e165e06db27eade9a79
ARM: highbank: fix secondary boot and hotplug

With commit 6ab8345 (ARM: gic: use a private mapping for CPU target
interfaces), wake-up IPIs now go to all cores as the gic cpu interface
numbering may not follow core numbering. This broke secondary boot on
highbank since the boot address was already set for all secondary cores,
this caused all cores to boot before the kernel was ready.

Fix this by moving the setting of the jump address to
highbank_boot_secondary instead of highbank_smp_prepare_cpus and
highbank_cpu_die. Also, clear the address when we boot. This prevents
cores from booting before they are actually triggered and is also necessary
to get suspend/resume to work.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-highbank/hotplug.c
arch/arm/mach-highbank/platsmp.c