powerpc: Set nr_cpu_ids early and use it to free PACAs
authorRyan Grimm <grimm@us.ibm.com>
Thu, 31 Mar 2011 19:33:02 +0000 (19:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Apr 2011 06:22:11 +0000 (16:22 +1000)
commitc1854e00727f50f7ac99e98d26ece04c087ef785
tree836a9b3cbf097ffcc650e91db2a83c9f83d0d3d5
parentf86d6b9b36a5d0923fa2abaacd425e328668fe16
powerpc: Set nr_cpu_ids early and use it to free PACAs

Without this, "holes" in the CPU numbering can cause us to
free too many PACAs

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup-common.c