android_kernel_xiaomi_sm8350/arch/powerpc/platforms/iseries
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
..
call_hpt.h
call_pci.h
call_sm.h
dt.c powerpc/iseries: Remove compiler version dependent hack 2009-10-27 16:42:39 +11:00
exception.h
exception.S powerpc: Dynamically allocate pacas 2010-03-09 11:52:52 +11:00
htab.c powerpc: Replace old style lock initializer 2009-11-24 14:31:28 +11:00
hvcall.S
hvlog.c
hvlpconfig.c
iommu.c
ipl_parms.h
irq.c powerpc: Remove whitespace in irq chip name fields 2010-02-17 14:02:48 +11:00
irq.h
it_exp_vpd_panel.h
it_lp_naca.h
Kconfig
ksyms.c
lpardata.c
lpevents.c
main_store.h
Makefile powerpc/iseries: Remove compiler version dependent hack 2009-10-27 16:42:39 +11:00
mf.c powerpc/iseries: Convert to proc_fops 2009-12-18 14:53:37 +11:00
misc.S
naca.h
pci.c
pci.h
proc.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
processor_vpd.h
release_data.h
setup.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
setup.h
smp.c
smp.h
spcomm_area.h
vio.c powerpc/iseries: Initialise on-stack completion 2010-01-15 13:26:14 +11:00
viopath.c powerpc/iseries: use DECLARE_COMPLETION_ONSTACK for non-constant completion 2009-12-18 14:55:44 +11:00
vpd_areas.h