]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/commitdiff
xen: initialize irq 0 too
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 5 Mar 2009 19:53:54 +0000 (11:53 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 25 Jun 2009 20:38:26 +0000 (13:38 -0700)
Impact: theoretical bugfix, cleanup

IRQ 0 is valid, so make sure it gets initialized properly too.
(Though in practice it doesn't matter, because its the timer
interrupt we don't use.)

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/pci.c

index 68eab725872219867f24e11ae72be5ce85028453..4b168bd45c80d9b3d8c53559778b07d819c266bd 100644 (file)
@@ -53,7 +53,7 @@ int xen_register_gsi(u32 gsi, int triggering, int polarity)
 
        printk(KERN_DEBUG "xen: --> irq=%d\n", irq);
 
-       if (irq > 0)
+       if (irq >= 0)
                xen_set_io_apic_routing(irq,
                                        triggering == ACPI_EDGE_SENSITIVE ? 0 : 1,
                                        polarity == ACPI_ACTIVE_HIGH ? 0 : 1);