linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm: arm: vgic: Let one looping code instead of two looping code
@ 2014-11-30  4:18 Chen Gang
  2014-11-30 10:07 ` Christoffer Dall
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Gang @ 2014-11-30  4:18 UTC (permalink / raw)
  To: linux-arm-kernel

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@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-01 14:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-30  4:18 [PATCH] kvm: arm: vgic: Let one looping code instead of two looping code Chen Gang
2014-11-30 10:07 ` Christoffer Dall
2014-12-01 14:04   ` Chen Gang
2014-11-30 11:08     ` Christoffer Dall
2014-11-30 14:21       ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).