mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-24 16:01:19 -05:00
Revert "ACPI / PCI: Simplify acpi_penalize_isa_irq()"
Revert commit0971686954"ACPI / PCI: Simplify acpi_penalize_isa_irq()" that depends on commitb5bd026954(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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user