diff options
author | Anton Blanchard | 2010-01-31 21:32:51 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt | 2010-02-17 04:02:48 +0100 |
commit | fda9d86100e0b412d0c8a16abe0651c8c8e39e81 (patch) | |
tree | dccc2fce96c47f35e8f18c282a842fa8113a2e2d /arch/powerpc/sysdev/cpm1.c | |
parent | powerpc: Reduce footprint of irq_stat (diff) | |
download | kernel-qcow2-linux-fda9d86100e0b412d0c8a16abe0651c8c8e39e81.tar.gz kernel-qcow2-linux-fda9d86100e0b412d0c8a16abe0651c8c8e39e81.tar.xz kernel-qcow2-linux-fda9d86100e0b412d0c8a16abe0651c8c8e39e81.zip |
powerpc: Reduce footprint of xics_ipi_struct
Right now we allocate a cacheline sized NR_CPUS array for xics IPI
communication. Use DECLARE_PER_CPU_SHARED_ALIGNED to put it in percpu
data in its own cacheline since it is written to by other cpus.
On a kernel with NR_CPUS=1024, this saves quite a lot of memory:
text data bss dec hex filename
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
8767555 2813444 1505724 13086723 c7b003 vmlinux.xics
A saving of around 128kB.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/cpm1.c')
0 files changed, 0 insertions, 0 deletions