Revert "ACPI / PCI: Simplify acpi_penalize_isa_irq()"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Feb 2016 12:53:46 +0000 (13:53 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Feb 2016 12:53:46 +0000 (13:53 +0100)
Revert commit 0971686954f9 "ACPI / PCI: Simplify acpi_penalize_isa_irq()"
that depends on commit b5bd02695471 (ACPI, PCI, irq: remove interrupt
count restriction) which introduced a regression and needs to be
reverted for this reason.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c

index fa2863567eed3c944c884245118c0d55d5ec5fdd..5114d8007aa004b0e51ff1b8c55f963cd19513f5 100644 (file)
@@ -877,9 +877,17 @@ static int __init acpi_irq_penalty_update(char *str, int used)
  */
 void acpi_penalize_isa_irq(int irq, int active)
 {
-       if (irq >= 0)
-               acpi_irq_add_penalty(irq, active ?
-                       PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING);
+       int penalty;
+
+       if (irq < 0)
+               return;
+
+       if (active)
+               penalty = PIRQ_PENALTY_ISA_USED;
+       else
+               penalty = PIRQ_PENALTY_PCI_USING;
+
+       acpi_irq_add_penalty(irq, penalty);
 }
 
 bool acpi_isa_irq_available(int irq)
This page took 0.025308 seconds and 5 git commands to generate.