summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-04-20 01:05:29 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-04-20 01:05:29 +0000
commitfb251fcedb0df144eef9925acc6790dca5e93054 (patch)
treea012f6166c0010f269c7346732446a880ed80bf9
parentf94699ffee7abc9c63a117c87a0976655806c93b (diff)
do not disable interrupts in the isr and then enable them again
when leaving. when you're handling an interrupt it is masked. whacking the chip is work for no gain. diff from chris@ tested by marco@ ok by me :)
-rw-r--r--sys/dev/pci/if_vr.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 2ee8f804323..98d1d43afdc 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.109 2011/04/05 18:01:21 henning Exp $ */
+/* $OpenBSD: if_vr.c,v 1.110 2011/04/20 01:05:28 dlg Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1055,9 +1055,6 @@ vr_intr(void *arg)
return 0;
}
- /* Disable interrupts. */
- CSR_WRITE_2(sc, VR_IMR, 0x0000);
-
status = CSR_READ_2(sc, VR_ISR);
if (status)
CSR_WRITE_2(sc, VR_ISR, status);
@@ -1126,9 +1123,6 @@ vr_intr(void *arg)
}
}
- /* Re-enable interrupts. */
- CSR_WRITE_2(sc, VR_IMR, VR_INTRS);
-
if (!IFQ_IS_EMPTY(&ifp->if_snd))
vr_start(ifp);