aboutsummaryrefslogtreecommitdiff
path: root/sys/net/netisr.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-10-25 05:19:40 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-10-25 05:19:40 +0000
commit8088699f795d34421f429d5539e8e68cbaf3115c (patch)
tree9894f99096605a24f42fc4e18482dead42b189a5 /sys/net/netisr.h
parent650789cb1b390b2ef141e62d03f950d8bec38bd5 (diff)
downloadsrc-8088699f795d34421f429d5539e8e68cbaf3115c.tar.gz
src-8088699f795d34421f429d5539e8e68cbaf3115c.zip
- Overhaul the software interrupt code to use interrupt threads for each
type of software interrupt. Roughly, what used to be a bit in spending now maps to a swi thread. Each thread can have multiple handlers, just like a hardware interrupt thread. - Instead of using a bitmask of pending interrupts, we schedule the specific software interrupt thread to run, so spending, NSWI, and the shandlers array are no longer needed. We can now have an arbitrary number of software interrupt threads. When you register a software interrupt thread via sinthand_add(), you get back a struct intrhand that you pass to sched_swi() when you wish to schedule your swi thread to run. - Convert the name of 'struct intrec' to 'struct intrhand' as it is a bit more intuitive. Also, prefix all the members of struct intrhand with 'ih_'. - Make swi_net() a MI function since there is now no point in it being MD. Submitted by: cp
Notes
Notes: svn path=/head/; revision=67551
Diffstat (limited to 'sys/net/netisr.h')
-rw-r--r--sys/net/netisr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h
index 07f6b7c1f8fc..f227fb22dc93 100644
--- a/sys/net/netisr.h
+++ b/sys/net/netisr.h
@@ -68,8 +68,10 @@
#ifndef LOCORE
#ifdef _KERNEL
+void legacy_setsoftnet __P((void));
+
extern volatile unsigned int netisr; /* scheduling bits for network */
-#define schednetisr(anisr) { netisr |= 1 << (anisr); setsoftnet(); }
+#define schednetisr(anisr) { netisr |= 1 << (anisr); legacy_setsoftnet(); }
typedef void netisr_t __P((void));