aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2010-01-31 20:32:51 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-02-17 14:02:48 +1100
commitfda9d86100e0b412d0c8a16abe0651c8c8e39e81 (patch)
treedccc2fce96c47f35e8f18c282a842fa8113a2e2d /arch/powerpc/kernel/irq.c
parentpowerpc: Reduce footprint of irq_stat (diff)
downloadlinux-dev-fda9d86100e0b412d0c8a16abe0651c8c8e39e81.tar.xz
linux-dev-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/kernel/irq.c')
0 files changed, 0 insertions, 0 deletions