aboutsummaryrefslogtreecommitdiff
path: root/arch/c6x
diff options
context:
space:
mode:
authorJens Freimann2014-03-18 16:34:18 +0100
committerChristian Borntraeger2014-03-25 13:27:11 +0100
commit609433fbed4f25e11e8b058ab7e9478b212879a9 (patch)
treecbb26db5ab1189321d559674d55311a5bba9535d /arch/c6x
parentf6c137ff00a478ae619deea8650829dd2f8e71b9 (diff)
KVM: s390: fix calculation of idle_mask array size
We need BITS_TO_LONGS, not sizeof(long) to calculate the correct size. idle_mask is a bitmask, each bit representing the state of a cpu. The desired outcome is an array of unsigned long fields that can fit KVM_MAX_VCPUS bits. We should not use sizeof(long) which returnes the size in bytes, but BITS_TO_LONGS Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions