Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215800
b: refs/heads/master
c: 23e7a79
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wang authored and Avi Kivity committed Oct 24, 2010
1 parent b08a099 commit 9c1ddc0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 989044ee0fdc6c22a11ea1d22e2a3d17463cb564
refs/heads/master: 23e7a7944f3779155e2f6bbc831b544eb925f387
9 changes: 0 additions & 9 deletions trunk/arch/x86/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,6 @@ static void pit_latch_status(struct kvm *kvm, int channel)
}
}

int pit_has_pending_timer(struct kvm_vcpu *vcpu)
{
struct kvm_pit *pit = vcpu->kvm->arch.vpit;

if (pit && kvm_vcpu_is_bsp(vcpu) && pit->pit_state.irq_ack)
return atomic_read(&pit->pit_state.pit_timer.pending);
return 0;
}

static void kvm_pit_ack_irq(struct kvm_irq_ack_notifier *kian)
{
struct kvm_kpit_state *ps = container_of(kian, struct kvm_kpit_state,
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/x86/kvm/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@
*/
int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu)
{
int ret;

ret = pit_has_pending_timer(vcpu);
ret |= apic_has_pending_timer(vcpu);

return ret;
return apic_has_pending_timer(vcpu);
}
EXPORT_SYMBOL(kvm_cpu_has_pending_timer);

Expand Down

0 comments on commit 9c1ddc0

Please sign in to comment.