powerpc: Reduce footprint of xics_ipi_struct
authorAnton Blanchard <anton@samba.org>
Sun, 31 Jan 2010 20:32:51 +0000 (20:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 17 Feb 2010 03:02:48 +0000 (14:02 +1100)
commitfda9d86100e0b412d0c8a16abe0651c8c8e39e81
treedccc2fce96c47f35e8f18c282a842fa8113a2e2d
parent8c007bfdf1bab536f824d91fccc76596c18aba78
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>
arch/powerpc/platforms/pseries/xics.c