]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI, PCI, irq: remove interrupt count restriction
authorSinan Kaya <okaya@codeaurora.org>
Wed, 9 Dec 2015 16:18:27 +0000 (11:18 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Jan 2016 02:02:47 +0000 (03:02 +0100)
commit7b5ffb4c8ae33b28c222da1fb5a7149346362694
tree15ebdccc315ba174d71015ebc449ff00c1172fca
parent7cc5f8579ab973e0327d3daf94c610de36dddbeb
ACPI, PCI, irq: remove interrupt count restriction

Code currently supports 256 maximum interrupts at this moment. The patch is
reconfiguring the penalty array as a dynamic list to remove this
limitation.

A new penalty linklist has been added for all other interrupts greater than
16. If an IRQ is not found in the link list, an IRQ info structure will be
dynamically allocated on the first access and will be placed on the list
for further reuse. The list will grow by the number of supported interrupts
in the ACPI table rather than having a 256 hard limitation.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c