powerpc: Use nr_cpu_ids in initial paca allocation
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:28:52 +0000 (19:28 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:44 +0000 (14:30 +1000)
commit2cd947f1757fb937806535be13caf2ddd813d60b
tree7c965799f1662e104053ab637666e9efd06d623f
parent8657ae28ddd34db0f52b0730a6a25992c0173264
powerpc: Use nr_cpu_ids in initial paca allocation

Now that we never set a cpu above nr_cpu_ids possible we can
limit our initial paca allocation to nr_cpu_ids.  We can then
clamp the number of cpus in platforms/iseries/setup.c.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/paca.c
arch/powerpc/platforms/iseries/setup.c