diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-12-21 14:56:25 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-12-21 14:56:25 +0000 |
commit | b45bcd941aeed9f9b5bca41338e52b47d57e7e43 (patch) | |
tree | 5a85ea83bfba94610d95b7c92196ee879e6dc6b6 /sys/arch/mips64 | |
parent | 1a7fe0231942d0e57909a2e6458fbcd0d2a5a8e0 (diff) |
Convert netisr to a normal soft interrupt instead of hanving MD code
for it. This makes the netisr a real C function which will help further
development. No noticable performance change on i386 and amd64.
With input from kettenis@ and miod@ additional OKs mikeb@ and henning@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/softintr.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/arch/mips64/mips64/softintr.c b/sys/arch/mips64/mips64/softintr.c index 0ad480f8b0d..8ed66087834 100644 --- a/sys/arch/mips64/mips64/softintr.c +++ b/sys/arch/mips64/mips64/softintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softintr.c,v 1.11 2010/01/18 17:00:28 miod Exp $ */ +/* $OpenBSD: softintr.c,v 1.12 2010/12/21 14:56:24 claudio Exp $ */ /* $NetBSD: softintr.c,v 1.2 2003/07/15 00:24:39 lukem Exp $ */ /* @@ -39,9 +39,6 @@ #include <sys/param.h> #include <sys/malloc.h> -/* XXX Network interrupts should be converted to new softintrs. */ -#include <net/netisr.h> - #include <uvm/uvm_extern.h> #include <machine/atomic.h> @@ -49,8 +46,6 @@ struct soft_intrq soft_intrq[SI_NQUEUES]; -struct soft_intrhand *softnet_intrhand; - void netintr(void); /* @@ -68,10 +63,6 @@ softintr_init(void) siq->siq_si = i; mtx_init(&siq->siq_mtx, IPL_HIGH); } - - /* XXX Establish legacy software interrupt handlers. */ - softnet_intrhand = softintr_establish(IPL_SOFTNET, - (void (*)(void *))netintr, NULL); } /* @@ -180,25 +171,6 @@ softintr_schedule(void *arg) mtx_leave(&siq->siq_mtx); } -int netisr; - -void -netintr(void) -{ - int n; - - while ((n = netisr) != 0) { - atomic_clearbits_int(&netisr, n); -#define DONETISR(bit, fn) \ - do { \ - if (n & (1 << (bit))) \ - fn(); \ - } while (0) -#include <net/netisr_dispatch.h> -#undef DONETISR - } -} - void dosoftint() { |