]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8d63e2fbda609151ce8b228f7651afdfd1721d2
tree7c965799f1662e104053ab637666e9efd06d623f
parentec60ea837868e750b8a384447d2dba8db1084844
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