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)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:49 +0000 (12:20 -0500)
commit914bdd67696f8ba03bc571b64778ed7560b4c4ef
tree88f8504309229fde49c52a617b40cc15c8d61b04
parent9d90325cca26f5dd37bbfc1fa751ecb90a446777
powerpc: Set nr_cpu_ids early and use it to free PACAs

BugLink: http://bugs.launchpad.net/bugs/793702

commit c1854e00727f50f7ac99e98d26ece04c087ef785 upstream.

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

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup-common.c