]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 12 Dec 2013 10:00:45 +0000 (11:00 +0100)
commitf9e56998ff8c568fb7f6477a00e8bde3ccc70d15
tree713183401fa4ee51f2b4dd427fe5875fca975a02
parentf439a391fcd03c75de73e1beeb11bd059e5f2202
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