]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/topology: delay initialization of topology cpu masks
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 4 Feb 2015 13:21:31 +0000 (14:21 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 12 Feb 2015 08:37:22 +0000 (09:37 +0100)
commitd05d15da18f521c4fb5a35b923ce33955c848d99
treeebcecd24578e12e06eedb25fab426d208e75885e
parent49253925c0be02ed4eb7d94a426731107dd8059d
s390/topology: delay initialization of topology cpu masks

There is no reason to initialize the topology cpu masks already while
setup_arch() is being called. It is sufficient to initialize the masks
before the scheduler becomes SMP aware.
Therefore a pre-SMP initcall aka early_initcall is suffucient.

This also allows to convert the cpu_topology array into a per cpu
variable with a later patch. Without this patch this wouldn't be
possible since the per cpu memory areas are not allocated while setup_arch
is executed.

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/setup.c
arch/s390/kernel/topology.c