]> git.baikalelectronics.ru Git - kernel.git/commit
s390/smp: improve setup of possible cpu mask
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 16 Dec 2013 13:31:26 +0000 (14:31 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Dec 2013 16:35:18 +0000 (17:35 +0100)
commitafb58234f90b6ab70dcb13ea9046ab33d3a40edb
treedac6a70fa90b58bdf396292e95dced35c3caccff
parentfec79ce97c190c86976e07ed6490ef5a2cfc3aea
s390/smp: improve setup of possible cpu mask

Since under z/VM we cannot have more than 64 cpus, make sure the
cpu_possible_mask does not contain more bits.
This avoids wasting memory for dynamic per-cpu allocations if
CONFIG_NR_CPUS is larger than 64.

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