]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: fix cpu map array sizes
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 10 Aug 2011 08:34:28 +0000 (10:34 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 14 Aug 2011 15:34:12 +0000 (17:34 +0200)
commit9d1a3a18f31388c0a4587943e63cdf2c8a490387
tree92b82ef2737adc64eeed5b7ca0be3eb5778deb02
parentabcd6368e65084c328c4d3b8cb05a31c55c7d478
lscpu: fix cpu map array sizes

Completely virtualized architectures like s390 may have multiple
virtual sockets and/or cores where each of them has a different
number of cores and cpus.
So the general assumption within the allocation scheme that e.g.
each socket contains the same number of cores is not necessarily
true. To make sure the arrays are always large enough we simply
allocate enough memory so that each array could hold cpu masks
for all present cpus.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c