Commit 4a2095df authored by Radim Krčmář's avatar Radim Krčmář Committed by Paolo Bonzini

KVM: i8254: remove pointless dereference of PIT

PIT is known at that point.
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a3e13115
...@@ -267,8 +267,8 @@ static void pit_do_work(struct kthread_work *work) ...@@ -267,8 +267,8 @@ static void pit_do_work(struct kthread_work *work)
if (ps->reinject && !atomic_xchg(&ps->irq_ack, 0)) if (ps->reinject && !atomic_xchg(&ps->irq_ack, 0))
return; return;
kvm_set_irq(kvm, kvm->arch.vpit->irq_source_id, 0, 1, false); kvm_set_irq(kvm, pit->irq_source_id, 0, 1, false);
kvm_set_irq(kvm, kvm->arch.vpit->irq_source_id, 0, 0, false); kvm_set_irq(kvm, pit->irq_source_id, 0, 0, false);
/* /*
* Provides NMI watchdog support via Virtual Wire mode. * Provides NMI watchdog support via Virtual Wire mode.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment