kernel-ark/arch/powerpc/platforms
Michael Ellerman 1426d5a3bd powerpc: Dynamically allocate pacas
On 64-bit kernels we currently have a 512 byte struct paca_struct for
each cpu (usually just called "the paca"). Currently they are statically
allocated, which means a kernel built for a large number of cpus will
waste a lot of space if it's booted on a machine with few cpus.

We can avoid that by only allocating the number of pacas we need at
boot. However this is complicated by the fact that we need to access
the paca before we know how many cpus there are in the system.

The solution is to dynamically allocate enough space for NR_CPUS pacas,
but then later in boot when we know how many cpus we have, we free any
unused pacas.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-03-09 11:52:52 +11:00
..
8xx powerpc/8xx: Fix build breakage with sparse irq changes 2009-10-30 17:21:38 +11:00
40x powerpc/40x: Add support for the ESTeem 195E (PPC405EP) SBC 2009-08-31 09:15:51 -04:00
44x powerpc/44x: Add Eiger AMCC (AppliedMicro) PPC460SX evaluation board support. 2009-08-31 08:24:15 -04:00
52xx [WATCHDOG] watchdog_info constify 2010-03-07 10:30:57 +00:00
82xx powerpc/82xx: Convert pci_pic_lock to raw_spinlock 2010-03-04 10:42:58 -06:00
83xx powerpc/83xx/suspend: Save and restore SICRL, SICRH and SCCR 2009-12-10 19:56:41 -06:00
85xx Merge commit 'kumar/next' into merge 2010-03-09 11:51:57 +11:00
86xx powerpc/86xx: Renaming following split of GE Fanuc joint venture 2010-03-04 10:43:44 -06:00
512x Merge commit 'gcl/next' into next 2010-02-19 14:38:23 +11:00
amigaone kbuild: move utsrelease.h to include/generated 2009-12-12 13:08:15 +01:00
cell Merge commit 'origin/master' into next 2010-02-26 14:41:00 +11:00
chrp Merge branch 'for-33' of git://repo.or.cz/linux-kbuild 2009-12-17 07:23:42 -08:00
embedded6xx powerpc/gc/wii: Remove get_irq_desc() 2009-12-21 11:12:14 +11:00
iseries powerpc: Dynamically allocate pacas 2010-03-09 11:52:52 +11:00
maple edac: cpc925 MC platform device setup 2009-06-18 13:03:57 -07:00
pasemi of: add 'of_' prefix to machine_is_compatible() 2010-02-09 08:33:00 -07:00
powermac Merge commit 'origin/master' into next 2010-02-26 14:41:00 +11:00
prep
ps3 powerpc: Fixup last users of irq_chip->typename 2009-11-24 14:32:45 +11:00
pseries powerpc: Convert confirm_error_lock to raw_spinlock 2010-02-19 14:52:31 +11:00
fsl_uli1575.c PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs 2010-02-23 09:43:31 -08:00
Kconfig powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00
Kconfig.cputype powerpc/perf: e500 support 2010-03-05 03:04:08 -06:00
Makefile powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00