ARM: shmobile: Introduce per-CPU SMP boot / sleep code
authorMagnus Damm <damm@opensource.se>
Wed, 31 Jul 2013 18:38:18 +0000 (03:38 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 6 Aug 2013 09:07:25 +0000 (18:07 +0900)
commitcc61591e45c0457139ddd4cd7e57f75928acaaf2
treeacce46776785425c7882c2f00731fa5d418c495e
parente9e7c4fbf468e205387b21463dddacfe44da2d9a
ARM: shmobile: Introduce per-CPU SMP boot / sleep code

Add per-CPU SMP boot / sleep code that can be used by all
SoCs included in mach-shmobile.

The boot code reads out the per-CPU MPIDR id value and
matches it with the value stored for any CPU number, and
if there is a match and the boot function is set as well
then the boot function will be executed.

The sleep code simply uses WFI and then jumps back to the
boot code to see if anyone has asked to wake up that CPU,
if not it will sleep again.

Signed-off-by: Magnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: Remove trailing whitespace]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/headsmp.S
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/platsmp.c
This page took 0.024969 seconds and 5 git commands to generate.