From 66e7b8998fc6d1b172b4fbe931a35061c50a7d61 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 24 May 1998 19:09:57 +0000 Subject: [PATCH] Only disable stray interrupts if there is no interrupt handler attached --- sys/arch/alpha/pci/pci_eb164.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/alpha/pci/pci_eb164.c b/sys/arch/alpha/pci/pci_eb164.c index c0a863b16d88..5951041b66af 100644 --- a/sys/arch/alpha/pci/pci_eb164.c +++ b/sys/arch/alpha/pci/pci_eb164.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_eb164.c,v 1.16 1998/05/11 23:36:46 thorpej Exp $ */ +/* $NetBSD: pci_eb164.c,v 1.17 1998/05/24 19:09:57 matt Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.16 1998/05/11 23:36:46 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.17 1998/05/24 19:09:57 matt Exp $"); #include #include @@ -318,7 +318,8 @@ eb164_iointr(framep, vec) alpha_shared_intr_stray(eb164_pci_intr, irq, "eb164 irq"); if (eb164_pci_intr[irq].intr_nstrays == - eb164_pci_intr[irq].intr_maxstrays) + eb164_pci_intr[irq].intr_maxstrays + && TAILQ_FIRST(&eb164_pci_intr[irq].intr_q) == NULL) eb164_intr_disable(irq); } return;