# HG changeset patch # User kaf24@scramble.cl.cam.ac.uk # Date 1082656976 0 # Node ID 33e86963d2a442da3c45ff6398ccae065b657caf # Parent bbc6183965725c742173ec7e95010843a5372367 bitkeeper revision 1.874 (408808d0T9IfojQOKayZ-Kw-GYP94A) Fix event-channel suspend/resume. diff -r bbc618396572 -r 33e86963d2a4 xenolinux-2.4.26-sparse/arch/xen/kernel/evtchn.c --- a/xenolinux-2.4.26-sparse/arch/xen/kernel/evtchn.c Thu Apr 22 17:51:22 2004 +0000 +++ b/xenolinux-2.4.26-sparse/arch/xen/kernel/evtchn.c Thu Apr 22 18:02:56 2004 +0000 @@ -355,8 +355,7 @@ static struct irqaction misdirect_action void irq_suspend(void) { - evtchn_op_t op; - int virq, irq, evtchn; + int virq, irq, evtchn; /* Unbind VIRQs from event channels. */ for ( virq = 0; virq < NR_VIRQS; virq++ ) @@ -365,13 +364,6 @@ void irq_suspend(void) continue; evtchn = irq_to_evtchn[irq]; - /* Inform Xen that we are unbinding. */ - op.cmd = EVTCHNOP_close; - op.u.close.dom = DOMID_SELF; - op.u.close.port = evtchn; - if ( HYPERVISOR_event_channel_op(&op) != 0 ) - panic("Failed to unbind virtual IRQ %d\n", virq); - /* Mark the event channel as unused in our table. */ evtchn_to_irq[evtchn] = -1; irq_to_evtchn[irq] = -1;