diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-24 07:53:46 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-24 07:53:46 -0500 |
commit | 5ec5d10682745d3280a37e8ffee1ddcd37ecfa94 (patch) | |
tree | 9abbf3def7784d05eabc8a64cf2a7c5513282e71 | |
parent | 81f70ba233d5f660e1ea5fe23260ee323af5d53a (diff) |
Revert "ACPI / PCI: Simplify acpi_penalize_isa_irq()"
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>
-rw-r--r-- | drivers/acpi/pci_link.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index fa2863567eed..5114d8007aa0 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -877,9 +877,17 @@ static int __init acpi_irq_penalty_update(char *str, int used) | |||
877 | */ | 877 | */ |
878 | void acpi_penalize_isa_irq(int irq, int active) | 878 | void acpi_penalize_isa_irq(int irq, int active) |
879 | { | 879 | { |
880 | if (irq >= 0) | 880 | int penalty; |
881 | acpi_irq_add_penalty(irq, active ? | 881 | |
882 | PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING); | 882 | if (irq < 0) |
883 | return; | ||
884 | |||
885 | if (active) | ||
886 | penalty = PIRQ_PENALTY_ISA_USED; | ||
887 | else | ||
888 | penalty = PIRQ_PENALTY_PCI_USING; | ||
889 | |||
890 | acpi_irq_add_penalty(irq, penalty); | ||
883 | } | 891 | } |
884 | 892 | ||
885 | bool acpi_isa_irq_available(int irq) | 893 | bool acpi_isa_irq_available(int irq) |