summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-02-26 03:15:42 +0000
committerscottl <scottl@FreeBSD.org>2003-02-26 03:15:42 +0000
commit9317dd98415bf426c742032e63da549a3488b8a1 (patch)
treead64b7fff0868ef683f7e5764838fab2d311b965 /sys/sys
parent9390269c86215a6c8dfb14df61c198cfe89e7fc7 (diff)
downloadFreeBSD-src-9317dd98415bf426c742032e63da549a3488b8a1.zip
FreeBSD-src-9317dd98415bf426c742032e63da549a3488b8a1.tar.gz
Introduce a new taskqueue that runs completely free of Giant, and in
turns runs its tasks free of Giant too. It is intended that as drivers become locked down, they will move out of the old, Giant-bound taskqueue and into this new one. The old taskqueue has been renamed to taskqueue_swi_giant, and the new one keeps the name taskqueue_swi.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/interrupt.h5
-rw-r--r--sys/sys/taskqueue.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 61d3ab6..a48efb7 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -94,8 +94,9 @@ struct ithd {
#define SWI_CAMNET 2
#define SWI_CAMBIO 3
#define SWI_VM 4
-#define SWI_TQ 5
-#define SWI_CLOCK 6
+#define SWI_TQ_GIANT 5
+#define SWI_TQ 6
+#define SWI_CLOCK 7
extern struct ithd *tty_ithd;
extern struct ithd *clk_ithd;
diff --git a/sys/sys/taskqueue.h b/sys/sys/taskqueue.h
index 4cad2dc..953bc28 100644
--- a/sys/sys/taskqueue.h
+++ b/sys/sys/taskqueue.h
@@ -110,6 +110,7 @@ struct __hack
* This queue is serviced by a software interrupt handler. To enqueue
* a task, call taskqueue_enqueue(taskqueue_swi, &task).
*/
+TASKQUEUE_DECLARE(swi_giant);
TASKQUEUE_DECLARE(swi);
#endif /* !_SYS_TASKQUEUE_H_ */
OpenPOWER on IntegriCloud