ARM: KVM: fix L2CTLR to be per-cluster
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Oct 2013 17:19:05 +0000 (18:19 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 22 Oct 2013 15:00:06 +0000 (08:00 -0700)
commit9cbb6d969cb6561de45d917b8bb9281cb374bb35
tree9605395f3422d5507350e697f6dda20ae17b73f6
parent2d1d841bd44e24b58a3d3cc4fa793670aaa38fbf
ARM: KVM: fix L2CTLR to be per-cluster

The L2CTLR register contains the number of CPUs in this cluster.

Make sure the register content is actually relevant to the vcpu
that is being configured by computing the number of cores that are
part of its cluster.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/coproc.c