summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-08-10 12:31:12 +0200
committerAlexander Graf <agraf@suse.de>2012-10-05 23:38:42 +0200
commit2d8185d4ee22f425001d28d1817fc8d478e6fa02 (patch)
tree963f91875a41bc77c6423e4cf06a5e7fbafe523a /arch/powerpc/kvm/booke.c
parent6346046c3a69edc9149311473b940f3af7c93752 (diff)
downloadtalos-obmc-linux-2d8185d4ee22f425001d28d1817fc8d478e6fa02.tar.gz
talos-obmc-linux-2d8185d4ee22f425001d28d1817fc8d478e6fa02.zip
KVM: PPC: BookE: No duplicate request != 0 check
We only call kvmppc_check_requests() when vcpu->requests != 0, so drop the redundant check in the function itself Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 00bcc57428c7..683cbd686d01 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -457,16 +457,14 @@ int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu)
static void kvmppc_check_requests(struct kvm_vcpu *vcpu)
{
- if (vcpu->requests) {
- trace_kvm_check_requests(vcpu);
+ trace_kvm_check_requests(vcpu);
- if (kvm_check_request(KVM_REQ_PENDING_TIMER, vcpu))
- update_timer_ints(vcpu);
+ if (kvm_check_request(KVM_REQ_PENDING_TIMER, vcpu))
+ update_timer_ints(vcpu);
#if defined(CONFIG_KVM_E500V2) || defined(CONFIG_KVM_E500MC)
- if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
- kvmppc_core_flush_tlb(vcpu);
+ if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
+ kvmppc_core_flush_tlb(vcpu);
#endif
- }
}
/*
OpenPOWER on IntegriCloud