diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-03-02 21:56:49 (GMT) |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-04 08:30:15 (GMT) |
commit | 4a2095df8ab1671078c46d988e1b83baf42db4f6 (patch) | |
tree | b958da4100b1f0d81d360100d9e5588be98c77b0 /arch/x86/kvm/i8254.c | |
parent | a3e1311549593692d98cba1ceb479f070dcd9873 (diff) | |
download | linux-4a2095df8ab1671078c46d988e1b83baf42db4f6.tar.xz |
KVM: i8254: remove pointless dereference of PIT
PIT is known at that point.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r-- | arch/x86/kvm/i8254.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 37e665c..964902b 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c @@ -267,8 +267,8 @@ static void pit_do_work(struct kthread_work *work) if (ps->reinject && !atomic_xchg(&ps->irq_ack, 0)) return; - kvm_set_irq(kvm, kvm->arch.vpit->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, 1, false); + kvm_set_irq(kvm, pit->irq_source_id, 0, 0, false); /* * Provides NMI watchdog support via Virtual Wire mode. |