[IA64] Don't warn for EOI-ing an edge triggered interrupt.
authorAlex Williamson <alex.williamson@hp.com>
Wed, 17 Oct 2007 16:25:18 +0000 (10:25 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Wed, 17 Oct 2007 16:25:18 +0000 (10:25 -0600)
Edge triggered interrupts don't need an EOI but EOI-ing them is harmless
according to the IOSAPIC documentation.  Do not emit a warning in such case.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
xen/arch/ia64/vmx/viosapic.c

index 84bf25e2d5e76698a97a502cf3112b29e07b6a9e..fe166005d07429da814dc3271af3b21fcb1eab05 100644 (file)
@@ -135,8 +135,9 @@ static void viosapic_update_EOI(struct viosapic *viosapic, int vector)
     if ( !test_and_clear_bit(redir_num, &viosapic->isr) )
     {
         spin_unlock(&viosapic->lock);
-        gdprintk(XENLOG_WARNING, "redir %d not set for %d EOI\n",
-                 redir_num, vector);
+        if ( viosapic->redirtbl[redir_num].trig_mode == SAPIC_LEVEL )
+            gdprintk(XENLOG_WARNING, "redir %d not set for %d EOI\n",
+                     redir_num, vector);
         return;
     }
     service_iosapic(viosapic);