Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 352b0ef5 authored by Mike Habeck's avatar Mike Habeck Committed by Tony Luck
Browse files

[IA64] SGI Altix : fix a force_interrupt bug on altix



If the interrupt has been disabled, don't call the force_interrupt provider.
Doing so can result in an infinite runaway interrupt loop.

Signed-off-by: default avatarMike Habeck <habeck@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 709ae930
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -405,7 +405,10 @@ sn_call_force_intr_provider(struct sn_irq_info *sn_irq_info)
	struct sn_pcibus_provider *pci_provider;

	pci_provider = sn_pci_provider[sn_irq_info->irq_bridge_type];
	if (pci_provider && pci_provider->force_interrupt)

	/* Don't force an interrupt if the irq has been disabled */
	if (!(irq_desc[sn_irq_info->irq_irq].status & IRQ_DISABLED) &&
	    pci_provider && pci_provider->force_interrupt)
		(*pci_provider->force_interrupt)(sn_irq_info);
}