]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix per-cpu allocation on oldworld SMP powermacs
authorPaul Mackerras <paulus@samba.org>
Thu, 7 Jun 2007 12:42:19 +0000 (22:42 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 14 Jun 2007 01:56:17 +0000 (11:56 +1000)
commiteccc8ebb1a818523a0ecdab211941a10711dad0f
treeed0515562cfa6e46a69cc035e53c7cee82654b0d
parent604927e635d6af649c271b95f7fc0b2f1382325a
[POWERPC] Fix per-cpu allocation on oldworld SMP powermacs

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: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/platforms/powermac/smp.c