diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-20 11:17:40 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-20 11:17:40 +0000 |
commit | 7a04b0ca7e8949cd87343d1d53f11d681cff64d1 (patch) | |
tree | f16ed9d1e48f56f496fb4ddeaf65b72a4f3a32d8 /xen/arch/x86/hvm/hpet.c | |
parent | 820c0c0735181f2ea3fd80d56a39455a2ae21b66 (diff) | |
download | xen-7a04b0ca7e8949cd87343d1d53f11d681cff64d1.tar.gz xen-7a04b0ca7e8949cd87343d1d53f11d681cff64d1.tar.bz2 xen-7a04b0ca7e8949cd87343d1d53f11d681cff64d1.zip |
[HVM] Save/restore cleanups 03: IRQ
IRQ, PIC, IOAPIC and LAPIC
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r-- | xen/arch/x86/hvm/hpet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index e86df4e735..b0f6413669 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -314,7 +314,6 @@ static void hpet_route_interrupt(HPETState *h, unsigned int tn) { unsigned int tn_int_route = timer_int_route(h, tn); struct domain *d = h->vcpu->domain; - struct hvm_irq *hvm_irq = &d->arch.hvm_domain.irq; if ( (tn <= 1) && (h->hpet.config & HPET_CFG_LEGACY) ) { @@ -336,9 +335,9 @@ static void hpet_route_interrupt(HPETState *h, unsigned int tn) } /* We only support edge-triggered interrupt now */ - spin_lock(&hvm_irq->lock); + spin_lock(&d->arch.hvm_domain.irq_lock); vioapic_irq_positive_edge(d, tn_int_route); - spin_unlock(&hvm_irq->lock); + spin_unlock(&d->arch.hvm_domain.irq_lock); } static void hpet_timer_fn(void *opaque) |