• Magnus Damm's avatar
    ARM: shmobile: Introduce per-CPU SMP boot / sleep code · cc61591e
    Magnus Damm authored
    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: default avatarMagnus Damm <damm@opensource.se>
    [horms+renesas@verge.net.au: Remove trailing whitespace]
    Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
    cc61591e
common.h 1.63 KB