]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Simplify TLB_* macros
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:18 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:46 +0000 (11:02 +0200)
commit80662b08349e86f49a20e793b90e9773173727a5
tree71915404ccb9a8c1696ffcb3ecbb2e5486991852
parent71142f1eb9b89ce0887f87ba4e79b6933707a49c
MIPS: KVM: Simplify TLB_* macros

Simplify some of the TLB_ macros making use of the arrayification of
tlb_lo. Basically we index the array by the bit of the virtual address
which determines whether the even or odd entry is used, instead of
having a conditional.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h