powerpc/cpumask: Dynamically allocate cpu_sibling_map and cpu_core_map cpumasks
authorAnton Blanchard <anton@samba.org>
Mon, 26 Apr 2010 15:32:41 +0000 (15:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2010 07:41:56 +0000 (17:41 +1000)
commitcc1ba8ea6dde3f049b2b365d8fdc13976aee25cb
tree89276abd9b89c39967a04ec39dcfc1ca2a924f6d
parente6532c63cc3dbefc79936fc9c9c68a151004fe46
powerpc/cpumask: Dynamically allocate cpu_sibling_map and cpu_core_map cpumasks

Dynamically allocate cpu_sibling_map and cpu_core_map cpumasks.

We don't need to set_cpu_online() the boot cpu in smp_prepare_boot_cpu,
init/main.c does it for us.

We also postpone setting of the boot cpu in cpu_sibling_map and cpu_core_map
until when the memory allocator is available (smp_prepare_cpus), similar
to x86.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/smp.h
arch/powerpc/include/asm/topology.h
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/cell/cbe_cpufreq.c