[PATCH 4/4] ACPI, PCI, IRQ: add PCI_USING for ISA interrupts too

From: Sinan Kaya
Date: Wed Sep 28 2016 - 19:27:41 EST


The change introduced in commit 103544d86976 ("ACPI,PCI,IRQ: reduce
resource requirements") removed PCI_USING penalty from
acpi_pci_link_allocate function as there is no longer a fixed size penalty
array for both PCI and IRQ interrupts.

We need to add the PCI_USING penalty for ISA interrupts too if the link is
in use and matches our ISA IRQ number.

Signed-off-by: Sinan Kaya <okaya@xxxxxxxxxxxxxx>
---
drivers/acpi/pci_link.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index a7068a4..984a972 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -514,7 +514,7 @@ static int acpi_irq_get_penalty(int irq)
}

if (irq < ACPI_MAX_ISA_IRQS)
- return penalty + acpi_isa_irq_penalty[irq];
+ penalty += acpi_isa_irq_penalty[irq];

penalty += acpi_irq_pci_sharing_penalty(irq);
return penalty;
--
1.9.1


--------------97707A6EB943ECEA41FEED52
Content-Type: text/plain; charset=UTF-8;
name="0001-ACPI-PCI-IRQ-add-PCI_USING-penalty-only-if-the-link-.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0001-ACPI-PCI-IRQ-add-PCI_USING-penalty-only-if-the-link-.pa";
filename*1="tch"