]> git.baikalelectronics.ru Git - kernel.git/commit
s390/smp: initialize cpu_present_mask in setup_arch
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 3 Dec 2016 08:48:01 +0000 (09:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 7 Dec 2016 06:23:07 +0000 (07:23 +0100)
commitb698b11cf414be746f43d1ff3558f44d80be989d
tree40771af138b90c55d7baa36c5257fbe16ddd5572
parenta79c57c48ae3c8a9252f71e43fbbad9919fe5d0d
s390/smp: initialize cpu_present_mask in setup_arch

In order to be able to setup the cpu to node mappings early it is a
prerequisite to know which cpus are present. Therefore cpus must be
detected much earlier than before.

For sclp based cpu detection this requires yet another early sclp
call, since the system is not ready to use the regular interrupt and
memory allocations.

Reviewed-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/sclp.h
arch/s390/include/asm/smp.h
arch/s390/kernel/setup.c
arch/s390/kernel/smp.c
drivers/s390/char/sclp.h
drivers/s390/char/sclp_cmd.c
drivers/s390/char/sclp_early.c