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)
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>

No differences found