]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ia64: Use irqd_irq_disabled() instead of desc->status access
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Mar 2011 19:50:49 +0000 (20:50 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Mar 2011 12:48:04 +0000 (14:48 +0200)
Remove the last open coded access to irq_desc.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/ia64/kernel/irq.c
arch/ia64/sn/kernel/irq.c

index 3fbf4bf93c67b44e68f528875aad056f3999eb57..ba2760d99e9ff8a8b03655d5850a7c9b1b3eac69 100644 (file)
@@ -137,7 +137,7 @@ static void migrate_irqs(void)
                struct irq_data *data = irq_desc_get_irq_data(desc);
                struct irq_chip *chip = irq_data_get_irq_chip(data);
 
-               if (desc->status == IRQ_DISABLED)
+               if (irqd_irq_disabled(data))
                        continue;
 
                /*
index cbb4e54063104ff4a3852aa75a8f68179619fb35..7f399f9d99c7960edf0b703c3c9d351d79a6f66a 100644 (file)
@@ -412,7 +412,7 @@ sn_call_force_intr_provider(struct sn_irq_info *sn_irq_info)
        pci_provider = sn_pci_provider[sn_irq_info->irq_bridge_type];
 
        /* Don't force an interrupt if the irq has been disabled */
-       if (!(irq_desc[sn_irq_info->irq_irq].status & IRQ_DISABLED) &&
+       if (!irqd_irq_disabled(sn_irq_info->irq_irq) &&
            pci_provider && pci_provider->force_interrupt)
                (*pci_provider->force_interrupt)(sn_irq_info);
 }