Use the fallback to ACPI SCI as PCI interrupt only as a last resort

if no other entry could be used.
This commit is contained in:
joerg 2007-11-05 10:30:44 +00:00
parent 6c2ee7b76e
commit 08de5799c0
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_pci_link.c,v 1.7 2006/09/24 06:03:20 dogcow Exp $ */
/* $NetBSD: acpi_pci_link.c,v 1.8 2007/11/05 10:30:44 joerg Exp $ */
/*-
* Copyright (c) 2002 Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.7 2006/09/24 06:03:20 dogcow Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_pci_link.c,v 1.8 2007/11/05 10:30:44 joerg Exp $");
#include "opt_acpi.h"
#include <sys/param.h>
@ -987,7 +987,7 @@ acpi_pci_link_choose_irq(struct acpi_pci_link_softc *sc, struct link *link)
* If this is an ISA IRQ, try using the SCI if it is also an ISA
* interrupt as a fallback.
*/
if (link->l_isa_irq) {
if (link->l_isa_irq && !PCI_INTERRUPT_VALID(best_irq)) {
pos_irq = AcpiGbl_FADT->SciInt;
pos_weight = pci_link_interrupt_weights[pos_irq];
if (pos_weight < best_weight) {