OSDN Git Service

s390/topology: convert cpu_topology array to per cpu variable
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 4 Feb 2015 13:48:25 +0000 (14:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 12 Feb 2015 08:37:22 +0000 (09:37 +0100)
commitda0c636ea79380c2001f319844e9a237cf211f96
treed80530069364e6d89d4384234414b6a558d33249
parentd05d15da18f521c4fb5a35b923ce33955c848d99
s390/topology: convert cpu_topology array to per cpu variable

Convert the per cpu topology cpu masks to a per cpu variable.
At least for machines which do have less possible cpus than NR_CPUS this can
save a bit of memory (z/VM: max 64 vs 512 for performance_defconfig).

This reduces the kernel image size by 100k.

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