linux_dsm_epyc7002/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
40x
44x
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
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
amigaone
cell
chrp
embedded6xx
iseries powerpc: Dynamically allocate pacas 2010-03-09 11:52:52 +11:00
maple
pasemi
powermac
prep
ps3
pseries
fsl_uli1575.c
Kconfig
Kconfig.cputype powerpc/perf: e500 support 2010-03-05 03:04:08 -06:00
Makefile