[PATCH] kvm: arm: vgic: Let one looping code instead of two looping code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use one looping instead of two, so can let code more simpler and get a
little better performance.

Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx>
---
 virt/kvm/arm/vgic.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
index cf23c13..eb1a51b 100644
--- a/virt/kvm/arm/vgic.c
+++ b/virt/kvm/arm/vgic.c
@@ -1959,9 +1959,6 @@ int kvm_vgic_create(struct kvm *kvm)
 		if (!mutex_trylock(&vcpu->mutex))
 			goto out_unlock;
 		vcpu_lock_idx = i;
-	}
-
-	kvm_for_each_vcpu(i, vcpu, kvm) {
 		if (vcpu->arch.has_run_once)
 			goto out_unlock;
 	}
-- 
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux