aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/include/asm/tlb.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-11-05 09:36:21 -0600
committerAvi Kivity <avi@redhat.com>2008-12-31 16:52:23 +0200
commit1b6766c7f3533c5d03668e11dd5617ae4a52e5a8 (patch)
tree3f5ed50be4044dca495c247dda069d634b012b38 /arch/blackfin/include/asm/tlb.h
parentb8fd68ac8db1f926fdb2c7f196598a279461de53 (diff)
KVM: ppc: optimize kvm stat handling
Currently we use an unnecessary if&switch to detect some cases. To be honest we don't need the ligh_exits counter anyway, because we can calculate it out of others. Sum_exits can also be calculated, so we can remove that too. MMIO, DCR and INTR can be counted on other places without these additional control structures (The INTR case was never hit anyway). The handling of BOOKE_INTERRUPT_EXTERNAL/BOOKE_INTERRUPT_DECREMENTER is similar, but we can avoid the additional if when copying 3 lines of code. I thought about a goto there to prevent duplicate lines, but rewriting three lines should be better style than a goto cross switch/case statements (its also not enough code to justify a new inline function). Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/blackfin/include/asm/tlb.h')
0 files changed, 0 insertions, 0 deletions