patch-2.4.25 linux-2.4.25/drivers/acpi/pci_irq.c
Next file: linux-2.4.25/drivers/acpi/pci_root.c
Previous file: linux-2.4.25/drivers/acpi/parser/psxface.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/acpi/pci_irq.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.24/drivers/acpi/pci_irq.c linux-2.4.25/drivers/acpi/pci_irq.c
@@ -318,7 +318,6 @@
{
int irq = 0;
u8 pin = 0;
- static u16 irq_mask = 0;
ACPI_FUNCTION_TRACE("acpi_pci_irq_enable");
@@ -375,10 +374,13 @@
* Make sure all (legacy) PCI IRQs are set as level-triggered.
*/
#ifdef CONFIG_X86
- if ((dev->irq < 16) && !((1 << dev->irq) & irq_mask)) {
- ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Setting IRQ %d as level-triggered\n", dev->irq));
- irq_mask |= (1 << dev->irq);
- eisa_set_level_irq(dev->irq);
+ {
+ static u16 irq_mask;
+ if ((dev->irq < 16) && !((1 << dev->irq) & irq_mask)) {
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Setting IRQ %d as level-triggered\n", dev->irq));
+ irq_mask |= (1 << dev->irq);
+ eisa_set_level_irq(dev->irq);
+ }
}
#endif
#ifdef CONFIG_IOSAPIC
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)