]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] Fix wrong assumption about irq and vector in msi_ia64.c
authorIshimatsu Yasuaki <isimatu.yasuaki@jp.fujitsu.com>
Fri, 6 Apr 2007 07:51:12 +0000 (16:51 +0900)
committerTony Luck <tony.luck@intel.com>
Fri, 6 Apr 2007 22:37:06 +0000 (15:37 -0700)
This patch fixes a wrong assumption in ia64 MSI code that IRQ equals
vector.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/msi_ia64.c

index ebbeadfee42d2029f31d9bbf94821efa4c66cfb2..c81080df70df47244579c1edeebef9969b6769bd 100644 (file)
@@ -76,7 +76,7 @@ int ia64_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
 
        set_irq_msi(irq, desc);
        dest_phys_id = cpu_physical_id(first_cpu(cpu_online_map));
-       vector = irq;
+       vector = irq_to_vector(irq);
 
        msg.address_hi = 0;
        msg.address_lo =
@@ -110,7 +110,7 @@ static void ia64_ack_msi_irq(unsigned int irq)
 
 static int ia64_msi_retrigger_irq(unsigned int irq)
 {
-       unsigned int vector = irq;
+       unsigned int vector = irq_to_vector(irq);
        ia64_resend_irq(vector);
 
        return 1;