aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8254.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-09 08:56:29 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:32:52 -0400
commit988a2cae6a3c0dea6df59808a935a9a697bfc28c (patch)
treec1118d86c5d6f24fe738c608917b0affb311f26d /arch/x86/kvm/i8254.c
parent73880c80aa9c8dc353cd0ad26579023213cd5314 (diff)
KVM: Use macro to iterate over vcpus.
[christian: remove unused variables on s390] Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r--arch/x86/kvm/i8254.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
index 06d8f84ae8a2..15fc95b2fc05 100644
--- a/arch/x86/kvm/i8254.c
+++ b/arch/x86/kvm/i8254.c
@@ -669,11 +669,8 @@ static void __inject_pit_timer_intr(struct kvm *kvm)
669 * VCPU0, and only if its LVT0 is in EXTINT mode. 669 * VCPU0, and only if its LVT0 is in EXTINT mode.
670 */ 670 */
671 if (kvm->arch.vapics_in_nmi_mode > 0) 671 if (kvm->arch.vapics_in_nmi_mode > 0)
672 for (i = 0; i < KVM_MAX_VCPUS; ++i) { 672 kvm_for_each_vcpu(i, vcpu, kvm)
673 vcpu = kvm->vcpus[i]; 673 kvm_apic_nmi_wd_deliver(vcpu);
674 if (vcpu)
675 kvm_apic_nmi_wd_deliver(vcpu);
676 }
677} 674}
678 675
679void kvm_inject_pit_timer_irqs(struct kvm_vcpu *vcpu) 676void kvm_inject_pit_timer_irqs(struct kvm_vcpu *vcpu)