]> git.baikalelectronics.ru Git - kernel.git/commit
s390/smp: reduce memory consumption of pcpu_devices array
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 5 Dec 2013 11:42:09 +0000 (12:42 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:46 +0000 (14:37 +0100)
commit655d4b062107500e1385e23ba134d660d68a1a79
treed18560fb13cde7f780edc6069df05a8d6349ce5a
parentd1d2f14256fd22ac3cc10b92cd10549561756e39
s390/smp: reduce memory consumption of pcpu_devices array

Remove the embedded struct cpu from struct pcpu and replace it with a
pointer instead. The struct cpu now gets allocated when a new cpu gets
detected.

The size of the pcpu_devices array (NR_CPUS * sizeof(struct pcpu)) gets
reduced by nearly 120KB.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c