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>
Thu, 2 Oct 2014 15:18:14 +0000 (17:18 +0200)
commit8c02aa50010946b98e5077e5e05b5d99e6286ab1
tree4de93958e70a241407e592c3d9d5d59f35dcdbe2
parentc0acda6fd7c83ca3cc8c5892247ece8c9651c9f3
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>
(cherry picked from commit 9cbb6d969cb6561de45d917b8bb9281cb374bb35)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/coproc.c