ARM: KVM: get rid of S2_PGD_SIZE
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 May 2013 11:11:39 +0000 (12:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 26 Jun 2013 17:50:04 +0000 (10:50 -0700)
commit4db845c3d8e2f8a219e8ac48834dd4fe085e5d63
treeff3b9cf0bc6b9e02ae7bf2776bda2f317de90808
parent8734f16fb2aa4ff0bb57ad6532661a38bc8ff957
ARM: KVM: get rid of S2_PGD_SIZE

S2_PGD_SIZE defines the number of pages used by a stage-2 PGD
and is unused, except for a VM_BUG_ON check that missuses the
define.

As the check is very unlikely to ever triggered except in
circumstances where KVM is the least of our worries, just kill
both the define and the VM_BUG_ON check.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/include/asm/kvm_arm.h
arch/arm/kvm/mmu.c