]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/smp: limit number of cpus in possible cpu mask
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 10 Mar 2014 13:50:16 +0000 (14:50 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 17 Mar 2014 14:53:06 +0000 (15:53 +0100)
commitcf813db0b448b45b454f0983329c3c7b007f9ab7
tree2ccbddbc0c1494d92e4fa4f1c2f7d337595e1dd2
parent36a554021b44d146178ae98e598c9502a1269f7d
s390/smp: limit number of cpus in possible cpu mask

Limit the number of bits to the maximum number of cpus a machine
can have.
possible_cpu_mask typically will have more bits set than a machine
may physically have. This results in wasted memory during per-cpu
memory allocations, if the possible mask contains more cpus than
physically possible for a given configuration.

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/kernel/smp.c
drivers/s390/char/sclp_early.c