• Paul Mackerras's avatar
    [POWERPC] Fix per-cpu allocation on oldworld SMP powermacs · c63c4faa
    Paul Mackerras authored
    The per-cpu area(a) for the secondary CPU(s) isn't getting allocated
    on old SMP powermacs that don't have the secondary CPU(s) listed in
    the device tree, as per-cpu areas are now only allocated for CPUs in
    the cpu_possible_map, and we aren't setting the bits for the secondary
    CPU(s) until smp_prepare_cpus(), which is after per-cpu allocation.
    Therefore this sets the bits for CPUs 1..3 in cpu_possible_map in
    pmac_setup_arch, so they get per-cpu data allocated.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    c63c4faa
smp.c 22.5 KB